mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-07 11:35:13 -05:00
Trim underscores in Util.ToInt32 and Util.ToUInt32
Addresses Mono bug 12241.
This commit is contained in:
@@ -184,11 +184,11 @@ internal static uint rnd32()
|
||||
// Data Retrieval
|
||||
internal static int ToInt32(string value)
|
||||
{
|
||||
return string.IsNullOrWhiteSpace(value) ? 0 : int.Parse(value.Trim());
|
||||
return string.IsNullOrWhiteSpace(value) ? 0 : int.Parse(value.Trim(new char[2] { ' ', '_' }));
|
||||
}
|
||||
internal static uint ToUInt32(string value)
|
||||
{
|
||||
return string.IsNullOrWhiteSpace(value) ? 0 : uint.Parse(value.Trim());
|
||||
return string.IsNullOrWhiteSpace(value) ? 0 : uint.Parse(value.Trim(new char[2] { ' ', '_' }));
|
||||
}
|
||||
internal static uint getHEXval(string s)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user