Fixed string getting cut off if the string had some symbols. The length of the string would not be the same as the bytes length.

This commit is contained in:
hondacrx
2018-01-04 18:28:13 -05:00
parent 552a793486
commit 796fcd9242
29 changed files with 185 additions and 157 deletions
+5
View File
@@ -306,6 +306,11 @@ namespace System
double value;
return double.TryParse(str, out value);
}
public static int GetByteCount(this string str)
{
return Encoding.UTF8.GetByteCount(str);
}
#endregion
#region BinaryReader