public static class SplitCharactersTokenizer.SplitCharactersSplitterFunction extends Object implements SplitFunctionTokenizer.SplitFunction
Constructor and Description |
---|
SplitCharactersSplitterFunction(char[] splitCharacters,
char[] splitXDigitsCharacters)
Constructs a splitting function using the supplied split characters.
|
Modifier and Type | Method and Description |
---|---|
SplitFunctionTokenizer.SplitResult |
apply(int codepoint,
int index,
CharSequence cs)
Applies the split function.
|
boolean |
isSplitCharacter(char c)
Checks if this is a valid split character or whitespace.
|
boolean |
isSplitXDigitCharacter(char c)
Checks if this a valid split character outside of a run of digits.
|
public SplitCharactersSplitterFunction(char[] splitCharacters, char[] splitXDigitsCharacters)
splitCharacters
- The characters to split on.splitXDigitsCharacters
- Characters that are valid split points outside of a run of digits.public SplitFunctionTokenizer.SplitResult apply(int codepoint, int index, CharSequence cs)
SplitFunctionTokenizer.SplitFunction
apply
in interface SplitFunctionTokenizer.SplitFunction
codepoint
- The codepoint to check.index
- The character index.cs
- The sequence that's being split.public boolean isSplitCharacter(char c)
c
- The character to check.public boolean isSplitXDigitCharacter(char c)
c
- The character to check.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.