edu.stanford.nlp.util
Class Characters
java.lang.Object
edu.stanford.nlp.util.Characters
public class Characters
- extends java.lang.Object
Character utilities. So far mainly performs a mapping of char to a
Singleton (interned) Character for each character.
- Author:
- Dan Klein
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getCharacter
public static java.lang.Character getCharacter(char c)
asCharacterArray
public static java.lang.Character[] asCharacterArray(java.lang.String s)
- Map a String to an array of type Character.
Note: Current implementation is correct/useful only for BMP
characters.
- Parameters:
s - The String to map
- Returns:
- An array of Character
asCharacterList
public static java.util.List<java.lang.Character> asCharacterList(java.lang.String s)
unicodeBlockStringOf
public static java.lang.String unicodeBlockStringOf(int codePoint)
Stanford NLP Group