public void WriteFormattingConstant(ConstantString_Formatting str) { var asUShort = (ushort)str; var ix = (asUShort >> 8); var len = asUShort & 0xFF; Builder.Append(ThunkWriterCharArrays.ConstantString_Formatting_Chars, ix, len); }
public static bool IsConstantFormattingString(string str, out ConstantString_Formatting c) { switch (str) { case "\"": c = ConstantString_Formatting.Quote; return(true); case "\\\"": c = ConstantString_Formatting.BackSlashQuote; return(true); case "{": c = ConstantString_Formatting.OpenCurlyBrace; return(true); case ",": c = ConstantString_Formatting.Comma; return(true); case "}": c = ConstantString_Formatting.CloseCurlyBrace; return(true); case "[": c = ConstantString_Formatting.OpenSquareBrace; return(true); case " ": c = ConstantString_Formatting.Space; return(true); case ", ": c = ConstantString_Formatting.CommaSpace; return(true); case "]": c = ConstantString_Formatting.CloseSquareBrace; return(true); case "\":": c = ConstantString_Formatting.QuoteColon; return(true); case "\": ": c = ConstantString_Formatting.QuoteColonSpace; return(true); case ": ": c = ConstantString_Formatting.ColonSpace; return(true); case ":": c = ConstantString_Formatting.Colon; return(true); case "\n": c = ConstantString_Formatting.NewLine; return(true); case "\n ": c = ConstantString_Formatting.NewLine1Space; return(true); case "\n ": c = ConstantString_Formatting.NewLine2Space; return(true); case "\n ": c = ConstantString_Formatting.NewLine3Space; return(true); case "\n ": c = ConstantString_Formatting.NewLine4Space; return(true); case "\n ": c = ConstantString_Formatting.NewLine5Space; return(true); case "\n ": c = ConstantString_Formatting.NewLine6Space; return(true); case "\n ": c = ConstantString_Formatting.NewLine7Space; return(true); case "\n ": c = ConstantString_Formatting.NewLine8Space; return(true); case "\n ": c = ConstantString_Formatting.NewLine9Space; return(true); case "\n ": c = ConstantString_Formatting.NewLine10Space; return(true); default: c = 0; return(false); } }
public void WriteFormattingConstant(ConstantString_Formatting str) { var asUShort = (ushort)str; var ix = (asUShort >> 8); var len = asUShort & 0xFF; Builder.Append(ThunkWriterCharArrays.ConstantString_Formatting_Chars, ix, len); }
public static bool IsConstantFormattingString(string str, out ConstantString_Formatting c) { switch(str) { case "\"": c = ConstantString_Formatting.Quote; return true; case "\\\"": c = ConstantString_Formatting.BackSlashQuote; return true; case "{": c = ConstantString_Formatting.OpenCurlyBrace; return true; case ",": c = ConstantString_Formatting.Comma; return true; case "}": c = ConstantString_Formatting.CloseCurlyBrace; return true; case "[": c = ConstantString_Formatting.OpenSquareBrace; return true; case " ": c = ConstantString_Formatting.Space; return true; case ", ": c = ConstantString_Formatting.CommaSpace; return true; case "]": c = ConstantString_Formatting.CloseSquareBrace; return true; case "\":": c = ConstantString_Formatting.QuoteColon; return true; case "\": ": c = ConstantString_Formatting.QuoteColonSpace; return true; case ": ": c = ConstantString_Formatting.ColonSpace; return true; case ":": c = ConstantString_Formatting.Colon; return true; case "\n": c = ConstantString_Formatting.NewLine; return true; case "\n ": c = ConstantString_Formatting.NewLine1Space; return true; case "\n ": c = ConstantString_Formatting.NewLine2Space; return true; case "\n ": c = ConstantString_Formatting.NewLine3Space; return true; case "\n ": c = ConstantString_Formatting.NewLine4Space; return true; case "\n ": c = ConstantString_Formatting.NewLine5Space; return true; case "\n ": c = ConstantString_Formatting.NewLine6Space; return true; case "\n ": c = ConstantString_Formatting.NewLine7Space; return true; case "\n ": c = ConstantString_Formatting.NewLine8Space; return true; case "\n ": c = ConstantString_Formatting.NewLine9Space; return true; case "\n ": c = ConstantString_Formatting.NewLine10Space; return true; default: c = 0; return false; } }