Home » Category » DotNet Visual C

DotNet Visual C: identifying unicode ranges in a managed string

206| Fri, 04 Jan 2008 17:30:00 GMT| newpuritangrant| Comments (1)
All

Apologies for the naivety of the following question, but how can one iterate
over a Managed C++ String, and identify if any of the characters belong to a
certain unicode range.? For example i would like to be able to identify if a
managed string contains say Balinese characters (unicode range 1B00 to 1B7F).
I would be extremely grateful for any help or references to a possible
solution -

Many thanks

Jonathan

Keywords & Tags: identifying, unicode, ranges, managed, string, dotnet, visual, .net

URL: http://dotnet.itags.org/visual-c/71215/
 
«« Prev - Next »» 1 helpful answers below.
Apologies for the naivety of the following question, but how can one
iterate
Quote:
Originally Posted by
over a Managed C++ String, and identify if any of the characters belong to

a
Quote:
Originally Posted by
certain unicode range.? For example i would like to be able to identify if

a
Quote:
Originally Posted by
managed string contains say Balinese characters (unicode range 1B00 to

1B7F).
Quote:
Originally Posted by
I would be extremely grateful for any help or references to a possible
solution -

See System.Globalization.CharUnicodeInfo
http://msdn2.microsoft.com/en-
us/library/system.globalization.charunicodeinfo.aspx

If RegEx works better for what you want, take a look at this:
http://msdn2.microsoft.com/en-us/library/20bw873z.aspx
--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
-------------
Replace _year_ with _ to get the real email

mihain | Fri, 04 Jan 2008 17:31:00 GMT |

DotNet Visual C Hot Answers

DotNet Visual C New questions

DotNet Visual C Related Categories