Old 01-08-2023, 06:27 AM   #1
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
Default Q: Escape sequences in JSFX and lua strings?

The C language escape sequences are listed here:
https://learn.microsoft.com/en-us/cp...?view=msvc-170

Which ones are supported in JSFX strings and matches?
Which ones are supported in lua strings and matches?
__________________
DarkStar ... interesting, if true. . . . Inspired by ...

Last edited by DarkStar; 01-08-2023 at 06:55 AM.
DarkStar is offline   Reply With Quote
Old 01-08-2023, 06:40 AM   #2
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

I linked to the EEL source code for escape sequences in your previous thread. It's \r \n \t \b \<decimal number> and \x<hexadecimal number> (plus \<any char> for escaping).

For Lua the documentation for them is at https://www.lua.org/manual/5.3/manual.html#3.1. It's \a \b \f \n \r \t \v \\ " \' \z \x<two hex digits> \<up to three decimal digits> and \u{<unicode code point in hex>}.
cfillion is offline   Reply With Quote
Old 01-08-2023, 06:56 AM   #3
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
Default

Oops , yes you did - but I am not a C programmer so could not work it out. But, thank you anyway.
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:42 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.