mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-03-09 14:33:32 +00:00
Code review
This commit is contained in:
parent
c4daefc9fb
commit
2ec906afb2
@ -101,14 +101,7 @@ public class StringUtil {
|
||||
return theString;
|
||||
}
|
||||
|
||||
StringBuilder retVal = new StringBuilder();
|
||||
for (int offset = 0; offset < theCodePointCount; ) {
|
||||
int codePoint = theString.codePointAt(offset);
|
||||
offset += Character.charCount(codePoint);
|
||||
retVal.append(Character.toChars(codePoint));
|
||||
}
|
||||
|
||||
return retVal.toString();
|
||||
return theString.substring(0, theString.offsetByCodePoints(0, theCodePointCount));
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user