Package ca.uhn.fhir.util
Class StringUtil
java.lang.Object
ca.uhn.fhir.util.StringUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
chompCharacter
(String theInput, char theCharacter) If a string ends with a given character, remove that character from the end of the string (as many times as it occurs at the end)static String
Gets the string prefix of the specified length.static String
normalizeStringForSearchIndexing
(String theString) static String
prependLineNumbers
(String theInput) static String
toUtf8String
(byte[] theBytes)
-
Constructor Details
-
StringUtil
public StringUtil()
-
-
Method Details
-
chompCharacter
If a string ends with a given character, remove that character from the end of the string (as many times as it occurs at the end) -
normalizeStringForSearchIndexing
-
toUtf8String
-
left
Gets the string prefix of the specified length.- Parameters:
theString
- String to get the prefix fromtheCodePointCount
- Length of the prefix in code points- Returns:
- Returns the string prefix of the specified number of codepoints.
-
prependLineNumbers
-