public class OStringParser extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COMMON_JUMP |
static String |
WHITE_SPACE |
Constructor and Description |
---|
OStringParser() |
Modifier and Type | Method and Description |
---|---|
static String[] |
getWords(String iRecord,
String iSeparatorChars) |
static String[] |
getWords(String iRecord,
String iSeparatorChars,
boolean iIncludeStringSep) |
static String[] |
getWords(String iText,
String iSeparatorChars,
String iJumpChars,
boolean iIncludeStringSep) |
static int |
indexOfOutsideStrings(String iText,
char iToFind,
int iFrom,
int iTo)
Finds a character inside a string specyfing the limits and direction.
|
static int |
jump(CharSequence iText,
int iCurrentPosition,
int iMaxPosition,
String iJumpChars)
Jump some characters reading from an offset of a String.
|
static int |
jumpWhiteSpaces(CharSequence iText,
int iCurrentPosition,
int iMaxPosition)
Jump white spaces.
|
static int |
readUnicode(char[] iText,
int position,
StringBuilder buffer) |
static int |
readUnicode(String iText,
int position,
StringBuilder buffer) |
static String |
replaceAll(String iText,
String iToReplace,
String iReplacement) |
static String[] |
split(String iText,
char iSplitChar,
String iJumpChars) |
static boolean |
startsWithIgnoreCase(String iText,
String iToFind)
Like String.startsWith() but ignoring case
|
public static final String WHITE_SPACE
public static final String COMMON_JUMP
public static String[] getWords(String iRecord, String iSeparatorChars, boolean iIncludeStringSep)
public static String[] getWords(String iText, String iSeparatorChars, String iJumpChars, boolean iIncludeStringSep)
public static int indexOfOutsideStrings(String iText, char iToFind, int iFrom, int iTo)
public static int jumpWhiteSpaces(CharSequence iText, int iCurrentPosition, int iMaxPosition)
iText
- String to analyzeiCurrentPosition
- Current position in textiMaxPosition
- TODOpublic static int jump(CharSequence iText, int iCurrentPosition, int iMaxPosition, String iJumpChars)
iText
- String to analyzeiCurrentPosition
- Current position in textiMaxPosition
- Maximum position to readiJumpChars
- String as char array of chars to jumppublic static int readUnicode(String iText, int position, StringBuilder buffer)
public static int readUnicode(char[] iText, int position, StringBuilder buffer)
Copyright © 2009–2020 OrientDB. All rights reserved.