kellyethridge / VBCorLib

The VBCorLib framework brings many of the powerful .NET classes to VB6.
http://www.kellyethridge.com/vbcorlib/
MIT License
112 stars 28 forks source link

When parsing string in BigInteger support parsing group separator of shifted-space (0xA0) as regular space. #85

Closed kellyethridge closed 3 years ago

kellyethridge commented 3 years ago

For cultures such as "fr-FR" the number group separator is 0xA0. However, since a user generally can't type such a character, it makes it difficult to strictly parse against those cultures. Support to treat a space (0x20) as a shifted space (0xA0) only for group separators of shifted space would be helpful.

All shifted space characters should not be treated as regular space, only when the group separator is a shifted space. So for the culture "fr-FR" a regular space would equate to a shifted space and be parsed as such. However, in the "en-US" culture as space should be treated as it normally would and not equate to a shifted space.