Author Topic: Escape sequences in musicList.cs  (Read 386 times)

Let's say I have .ogg files with these characters in them:

  • Parenthesis: ( and )
  • Curly braces: { and }
  • Periods: .
  • Apostrophes: '
  • Dashes: -

What characters do I use to "escape" them, since variable names cannot have these characters? For example, - is replaced by DASH.

The file names can contain those characters. Just no spaces.

If you're wondering how it gets the name for the variable and datablock, call getSafeVariableName(%name). For example, "blah (12'2-)" turns into "blah_12APOS2DASH".