示例#1
0
 internal static bool TryParseInvariant(StringSlice text, out int value) =>
 int.TryParse(text.ToString(), NumberStyles.Integer, InvariantNumberFormat, out value);
示例#2
0
 public static string ConcatString(string str0, StringSlice str1) =>
 ConcatString(str0, str1.Text, str1.Offset, str1.Length);
 public bool Equals(StringSlice other) =>
 Length == other.Length &&
 StringEx.EqualsOffset(Text, Offset, other.Text, other.Offset, Length);
示例#4
0
 public static void AppendSlice(this StringBuilder builder, StringSlice slice)
 {
     builder.Append(slice.Text, slice.Offset, slice.Length);
 }