O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

StringInfo

Synopsis

This class allows you to manipulate a string by its individual elements. Each separately displayed character is considered a text element. This includes base characters and the Unicode-defined surrogate pairs and combining character sequences. The class provides enumeration of the elements in the string, as well as a means of further identifying combining characters. ParseCombiningCharacters() returns only the indexes of the base characters, high surrogates, and combined characters within a string.

public class StringInfo {
// Public Constructors
   public method StringInfo();  
// Public Static Methods
   public static method string GetNextTextElement(
        string str);  
   public static method string GetNextTextElement(string str, 
        int index);  
   public static method TextElementEnumerator GetTextElementEnumerator(
        string str);  
   public static method TextElementEnumerator GetTextElementEnumerator(
        string str, int index);  
   public static method int[] ParseCombiningCharacters(
        string str);  
}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required