Java org.eclipse.jdt.core.compiler CharOperation fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jdt.core.compiler CharOperation fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jdt.core.compiler CharOperation.

The text is from its open source code.

Field

nullNO_CHAR
Constant for an empty char array
nullNO_CHAR_CHAR
Constant for an empty char array with two dimensions.
String[]NO_STRINGS
Constant for an empty String array.

Method

char[]append(char[] array, char suffix)
Answers a new array with appending the suffix character at the end of the array.
char[]append(char[] target, char[] suffix)
Answers a new array with appending the sub-array at the end of the array.
char[][]arrayConcat(char[][] first, char[][] second)
Answers the concatenation of the two arrays.
char[][]arrayConcat(char[][] first, char[] second)
Answers a new array adding the second array at the end of first array.
booleancamelCaseMatch(char[] pattern, char[] name, boolean samePartCount)
Answers true if the pattern matches the given name using CamelCase rules, or false otherwise.
booleancamelCaseMatch(char[] pattern, char[] name)
Answers true if the pattern matches the given name using CamelCase rules, or false otherwise.
booleancamelCaseMatch(char[] pattern, int patternStart, int patternEnd, char[] name, int nameStart, int nameEnd)
Answers true if a sub-pattern matches the sub-part of the given name using CamelCase rules, or false otherwise.
String[]charArrayToStringArray(char[][] charArrays)
Returns the char arrays as an array of Strings
StringcharToString(char[] charArray)
Returns the char array as a String
intcompareTo(char[] array1, char[] array2)
Compares the two char arrays lexicographically.
intcompareWith(char[] array, char[] prefix)
Compares the contents of the two arrays array and prefix.
char[]concat(char[] first, char[] second)
Answers the concatenation of the two arrays.
char[]concat(char[] first, char[] second, char[] third)
Answers the concatenation of the three arrays.
char[]concat(char[] first, char[] second, char separator)
Answers the concatenation of the two arrays inserting the separator character between the two arrays.
char[]concat(char prefix, char[] array, char suffix)
Answers a new array with prepending the prefix character and appending the suffix character at the end of the array.
char[]concat(char[] first, char sep1, char[] second, char sep2, char[] third)
Answers the concatenation of the three arrays inserting the sep1 character between the first two arrays and sep2 between the last two.
char[]concatWith(char[][] array, char separator)
Answers the concatenation of the given array parts using the given separator between each part.
char[]concatWith(char[] name, char[][] array, char separator)
Answers the concatenation of the given array parts using the given separator between each part and prepending the given name at the beginning.
char[]concatWith(char[][] array, char[] name, char separator)
Answers the concatenation of the given array parts using the given separator between each part and appending the given name at the end.
booleancontains(char character, char[][] array)
Answers true if the array contains an occurrence of character, false otherwise.
booleancontains(char character, char[] array)
Answers true if the array contains an occurrence of character, false otherwise.
booleancontains(char[] characters, char[] array)
Answers true if the array contains an occurrence of one of the characters, false otherwise.
char[][]deepCopy(char[][] toCopy)
Answers a deep copy of the toCopy array.
booleanendsWith(char[] array, char[] toBeFound)
Return true if array ends with the sequence of characters contained in toBeFound, otherwise false.
booleanequals(char[][] first, char[][] second)
Answers true if the two arrays are identical character by character, otherwise false.
booleanequals(char[] first, char[] second)
Answers true if the two arrays are identical character by character, otherwise false.
booleanequals(char[][] first, char[][] second, boolean isCaseSensitive)
If isCaseSensite is true, answers true if the two arrays are identical character by character, otherwise false.
booleanequals(char[] first, char[] second, boolean isCaseSensitive)
If isCaseSensite is true, answers true if the two arrays are identical character by character, otherwise false.
booleanequals(char[] first, char[] second, int secondStart, int secondEnd)
Answers true if the first array is identical character by character to a portion of the second array delimited from position secondStart (inclusive) to secondEnd(exclusive), otherwise false.
booleanfragmentEquals(char[] fragment, char[] name, int startIndex, boolean isCaseSensitive)
If isCaseSensite is true, the equality is case sensitive, otherwise it is case insensitive.
inthashCode(char[] array)
Answers a hashcode for the array
intindexOf(char toBeFound, char[] array)
Answers the first index in the array for which the corresponding character is equal to toBeFound.
intindexOf(final char[] toBeFound, final char[] array, final boolean isCaseSensitive, final int start)
Answers the first index in the array for which the toBeFound array is a matching subarray following the case rule starting at the index start.
intindexOf(char toBeFound, char[] array, int start, int end)
Answers the first index in the array for which the corresponding character is equal to toBeFound starting the search at index start and before the ending index.
intindexOf(char[] toBeFound, char[] array, boolean isCaseSensitive)
Answers the first index in the array for which the toBeFound array is a matching subarray following the case rule.
intindexOf(char toBeFound, char[] array, int start)
Answers the first index in the array for which the corresponding character is equal to toBeFound starting the search at index start.
booleanisWhitespace(char c)
Answers true if c is a whitespace according to the JLS (\u0009, \u000a, \u000c, \u000d, \u0020), otherwise false.
intlastIndexOf(char toBeFound, char[] array)
Answers the last index in the array for which the corresponding character is equal to toBeFound starting from the end of the array.
intlastIndexOf(char toBeFound, char[] array, int startIndex, int endIndex)
Answers the last index in the array for which the corresponding character is equal to toBeFound starting from endIndex to startIndex.
intlastIndexOf(char toBeFound, char[] array, int startIndex)
Answers the last index in the array for which the corresponding character is equal to toBeFound stopping at the index startIndex.
char[]lastSegment(char[] array, char separator)
Answers the last portion of a name given a separator.
booleanmatch(char[] pattern, char[] name, boolean isCaseSensitive)

Answers true if the pattern matches the given name, false otherwise.

intoccurencesOf(char toBeFound, char[] array)
Answers the number of occurrences of the given character in the given array, 0 if any.
booleanpathMatch(char[] pattern, char[] filepath, boolean isCaseSensitive, char pathSeparator)
Answers true if the pattern matches the filepath using the pathSepatator, false otherwise.
booleanprefixEquals(char[] prefix, char[] name, boolean isCaseSensitive)
Answers true if the given name starts with the given prefix, false otherwise.
booleanprefixEquals(char[] prefix, char[] name, boolean isCaseSensitive, int startIndex)
Answers true if the given name, starting from the given index, starts with the given prefix, false otherwise.
booleanprefixEquals(char[] prefix, char[] name)
Answers true if the given name starts with the given prefix, false otherwise.
char[]remove(char[] array, char toBeRemoved)
Answers a new array removing a given character.
voidreplace(char[] array, char toBeReplaced, char replacementChar)
Replace all occurrence of the character to be replaced with the replacement character in the given array.
voidreplace(char[] array, char[] toBeReplaced, char replacementChar)
Replace all occurrences of characters to be replaced with the replacement character in the given array.
char[]replace(char[] array, char[] toBeReplaced, char[] replacementChars)
Answers a new array of characters with substitutions.
voidreplace(char[] array, char[] toBeReplaced, char replacementChar, int start, int end)
Replace all occurrences of characters to be replaced with the replacement character in the given array from the start position (inclusive) to the end position (exclusive).
char[]replaceOnCopy(char[] array, char toBeReplaced, char replacementChar)
Replace all occurrence of the character to be replaced with the replacement character in a copy of the given array.
char[][]splitAndTrimOn(char divider, char[] array)
Return a new array which is the split of the given array using the given divider and trimming each subarray to remove whitespaces equals to ' '.
char[][]splitOn(char divider, char[] array)
Return a new array which is the split of the given array using the given divider.
char[][]splitOn(char divider, char[] array, int start, int end)
Return a new array which is the split of the given array using the given divider.
char[][]subarray(char[][] array, int start, int end)
Answers a new array which is a copy of the given array starting at the given start and ending at the given end.
char[]subarray(char[] array, int start, int end)
Answers a new array which is a copy of the given array starting at the given start and ending at the given end.
char[]toLowerCase(char[] chars)
Answers the result of a char[] conversion to lowercase.
StringtoString(char[][] array)
Answers a string which is the concatenation of the given array using the '.'
String[]toStrings(char[][] array)
Answers an array of strings from the given array of char array.