static string FetchField(string content, int start_pos, int len) { if (len < 1) { return(""); } if (content [start_pos] != '"') { // Not start with '"', return directly return(content.Substring(start_pos, len)); } string value_format = "\"\""; if (len <= value_format.Length) { return(""); } // remove the first '"' and the last '#' start_pos++; len -= value_format.Length; // Replace "\"\"" to "\"" string str = content.Substring(start_pos, len); str = str.Replace(value_format, "\""); // 字符串转义 str = GameUtility.ConvertToNGUIFormat(str); return(str); }