identifying unicode ranges in a managed string

  • Thread starter newpuritangrant
  • Start date
N

newpuritangrant

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
 
M

Mihai N.

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 -

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top