DotNet Visual C: identifying unicode ranges in a managed string

  • newpuritangrant / 206 / Sun, 05 Apr 2009 08:42:00 GMT / 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:

    identifying, unicode, ranges, managed, string, dotnet, visual, .net

  • http://dotnet.itags.org/visual-c/71215/«« Last Thread - Next Thread »»
    1. 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 |