public final class HL7Util extends Object
| Modifier and Type | Method and Description |
|---|---|
static int[] |
find(String value,
char sep)
Convenience method.
|
static int[] |
find(String value,
char sep,
int start)
Convenience method.
|
static int[] |
find(String value,
char sep,
int start,
int end)
Find all occurrences of the separator character in the sub-string.
|
public static int[] find(String value, char sep)
find(value, sep, 0, value.length())
value - string to searchsep - separator character to search forpublic static int[] find(String value, char sep, int start)
find(value, sep, start, value.length())
value - string to searchsep - separator character to search forstart - starting offset in valuepublic static int[] find(String value, char sep, int start, int end)
value - entire stringsep - separator character to search forstart - starting index of sub-string to search (inclusive)end - ending index of sub-string to search (exclusive)sep, in order, plus one extra index equal to endStringIndexOutOfBoundsException - if start is less than zero or end is
greater than the length of valueCopyright © 2018. All rights reserved.