Пример #1
0
        public void Write000EscapeConstant(ConstantString_000Escape str)
        {
            var ix = (byte)str;

            Builder.Append(ThunkWriterCharArrays.Escape000Prefix);
            Builder.Append(ThunkWriterCharArrays.ConstantString_000Escape_Chars[ix]);
        }
Пример #2
0
        public static bool IsConstant000EscapeString(string str, out ConstantString_000Escape c)
        {
            switch (str)
            {
            case @"\u0000": c = ConstantString_000Escape.EscapeSequence_0000; return(true);

            case @"\u0001": c = ConstantString_000Escape.EscapeSequence_0001; return(true);

            case @"\u0002": c = ConstantString_000Escape.EscapeSequence_0002; return(true);

            case @"\u0003": c = ConstantString_000Escape.EscapeSequence_0003; return(true);

            case @"\u0004": c = ConstantString_000Escape.EscapeSequence_0004; return(true);

            case @"\u0005": c = ConstantString_000Escape.EscapeSequence_0005; return(true);

            case @"\u0006": c = ConstantString_000Escape.EscapeSequence_0006; return(true);

            case @"\u0007": c = ConstantString_000Escape.EscapeSequence_0007; return(true);

            case @"\u000B": c = ConstantString_000Escape.EscapeSequence_000B; return(true);

            case @"\u000E": c = ConstantString_000Escape.EscapeSequence_000E; return(true);

            case @"\u000F": c = ConstantString_000Escape.EscapeSequence_000F; return(true);

            default: c = 0; return(false);
            }
        }
Пример #3
0
        public void Write000EscapeConstant(ConstantString_000Escape str)
        {
            var ix = (byte)str;

            Builder.Append(ThunkWriterCharArrays.Escape000Prefix);
            Builder.Append(ThunkWriterCharArrays.ConstantString_000Escape_Chars[ix]);
        }
Пример #4
0
 public static bool IsConstant000EscapeString(string str, out ConstantString_000Escape c)
 {
     switch (str)
     {
         case @"\u0000": c = ConstantString_000Escape.EscapeSequence_0000; return true;
         case @"\u0001": c = ConstantString_000Escape.EscapeSequence_0001; return true;
         case @"\u0002": c = ConstantString_000Escape.EscapeSequence_0002; return true;
         case @"\u0003": c = ConstantString_000Escape.EscapeSequence_0003; return true;
         case @"\u0004": c = ConstantString_000Escape.EscapeSequence_0004; return true;
         case @"\u0005": c = ConstantString_000Escape.EscapeSequence_0005; return true;
         case @"\u0006": c = ConstantString_000Escape.EscapeSequence_0006; return true;
         case @"\u0007": c = ConstantString_000Escape.EscapeSequence_0007; return true;
         case @"\u000B": c = ConstantString_000Escape.EscapeSequence_000B; return true;
         case @"\u000E": c = ConstantString_000Escape.EscapeSequence_000E; return true;
         case @"\u000F": c = ConstantString_000Escape.EscapeSequence_000F; return true;
         default: c = 0; return false;
     }
 }