public void WriteValueConstant(ConstantString_Value str) { var asUShort = (ushort)str; var ix = (asUShort >> 8); var len = asUShort & 0xFF; Builder.Append(ThunkWriterCharArrays.ConstantString_Value_Chars, ix, len); }
public static bool IsConstantValueString(string str, out ConstantString_Value c) { switch (str) { case "null": c = ConstantString_Value.Null; return(true); case "\"\\/Date(": c = ConstantString_Value.Date; return(true); case ")\\/\"": c = ConstantString_Value.CloseDate; return(true); case "true": c = ConstantString_Value.True; return(true); case "false": c = ConstantString_Value.False; return(true); default: c = 0; return(false); } }
public static bool IsConstantValueString(string str, out ConstantString_Value c) { switch (str) { case "null": c = ConstantString_Value.Null; return true; case "\"\\/Date(": c = ConstantString_Value.Date; return true; case ")\\/\"": c = ConstantString_Value.CloseDate; return true; case "true": c = ConstantString_Value.True; return true; case "false": c = ConstantString_Value.False; return true; case " GMT\"": c = ConstantString_Value.SpaceGMTQuote; return true; default: c = 0; return false; } }