
Package ca.uhn.fhir.util
Class StringUtil
java.lang.Object
ca.uhn.fhir.util.StringUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringchompCharacter(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 StringGets the string prefix of the specified length.static StringnormalizeStringForSearchIndexing(String theString) static StringprependLineNumbers(String theInput) static StringtoUtf8String(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
-