Esempio n. 1
0
        public void Write001EscapeConstant(ConstantString_001Escape str)
        {
            var ix = (byte)str;

            Builder.Append(ThunkWriterCharArrays.Escape001Prefix);
            Builder.Append(ThunkWriterCharArrays.ConstantString_001Escape_Chars[ix]);
        }
Esempio n. 2
0
        public static bool IsConstant001EscapeString(string str, out ConstantString_001Escape c)
        {
            switch (str)
            {
            case @"\u0010": c = ConstantString_001Escape.EscapeSequence_0010; return(true);

            case @"\u0011": c = ConstantString_001Escape.EscapeSequence_0011; return(true);

            case @"\u0012": c = ConstantString_001Escape.EscapeSequence_0012; return(true);

            case @"\u0013": c = ConstantString_001Escape.EscapeSequence_0013; return(true);

            case @"\u0014": c = ConstantString_001Escape.EscapeSequence_0014; return(true);

            case @"\u0015": c = ConstantString_001Escape.EscapeSequence_0015; return(true);

            case @"\u0016": c = ConstantString_001Escape.EscapeSequence_0016; return(true);

            case @"\u0017": c = ConstantString_001Escape.EscapeSequence_0017; return(true);

            case @"\u0018": c = ConstantString_001Escape.EscapeSequence_0018; return(true);

            case @"\u0019": c = ConstantString_001Escape.EscapeSequence_0019; return(true);

            case @"\u001A": c = ConstantString_001Escape.EscapeSequence_001A; return(true);

            case @"\u000B": c = ConstantString_001Escape.EscapeSequence_001B; return(true);

            case @"\u000C": c = ConstantString_001Escape.EscapeSequence_001C; return(true);

            case @"\u000D": c = ConstantString_001Escape.EscapeSequence_001D; return(true);

            case @"\u000E": c = ConstantString_001Escape.EscapeSequence_001E; return(true);

            case @"\u000F": c = ConstantString_001Escape.EscapeSequence_001F; return(true);

            default: c = 0; return(false);
            }
        }
Esempio n. 3
0
        public void Write001EscapeConstant(ConstantString_001Escape str)
        {
            var ix = (byte)str;

            Builder.Append(ThunkWriterCharArrays.Escape001Prefix);
            Builder.Append(ThunkWriterCharArrays.ConstantString_001Escape_Chars[ix]);
        }
Esempio n. 4
0
 public static bool IsConstant001EscapeString(string str, out ConstantString_001Escape c)
 {
     switch (str)
     {
         case @"\u0010": c = ConstantString_001Escape.EscapeSequence_0010; return true;
         case @"\u0011": c = ConstantString_001Escape.EscapeSequence_0011; return true;
         case @"\u0012": c = ConstantString_001Escape.EscapeSequence_0012; return true;
         case @"\u0013": c = ConstantString_001Escape.EscapeSequence_0013; return true;
         case @"\u0014": c = ConstantString_001Escape.EscapeSequence_0014; return true;
         case @"\u0015": c = ConstantString_001Escape.EscapeSequence_0015; return true;
         case @"\u0016": c = ConstantString_001Escape.EscapeSequence_0016; return true;
         case @"\u0017": c = ConstantString_001Escape.EscapeSequence_0017; return true;
         case @"\u0018": c = ConstantString_001Escape.EscapeSequence_0018; return true;
         case @"\u0019": c = ConstantString_001Escape.EscapeSequence_0019; return true;
         case @"\u001A": c = ConstantString_001Escape.EscapeSequence_001A; return true;
         case @"\u000B": c = ConstantString_001Escape.EscapeSequence_001B; return true;
         case @"\u000C": c = ConstantString_001Escape.EscapeSequence_001C; return true;
         case @"\u000D": c = ConstantString_001Escape.EscapeSequence_001D; return true;
         case @"\u000E": c = ConstantString_001Escape.EscapeSequence_001E; return true;
         case @"\u000F": c = ConstantString_001Escape.EscapeSequence_001F; return true;
         default: c = 0; return false;
     }
 }