Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Wiki Markup
According to the Java API \[[API 062006|AA. Java References#API 06]\], class {{Character}} documentation (Unicode Character Representations):

...

Wiki Markup
This noncompliant code example attempts to trim leading letters from the {{string}}. It fails to accomplish this task because {{Character.isLetter()}} does not work for supplementary and combining characters. \[[Hornig 072007|AA. Java References#Hornig 07]\] (sic)

...

Wiki Markup
This noncompliant code example ameliorates the problem by using the {{String.codePointAt()}} method which accepts an {{int}} argument. This works for supplementary characters but not for combining characters. \[[Hornig 072007|AA. Java References#Hornig 07]\] (sic)

...

Wiki Markup
This compliant solution works for both supplementary and combining characters \[[Hornig 072007|AA. Java References#Hornig 07]\] (sic). According to the Java API \[[API 062006|AA. Java References#API 06]\], class {{java.text.BreakIterator}} documentation:

...

References

Wiki Markup
\[[API 062006|AA. Java References#API 06]\] Classes {{Character}} and {{BreakIterator}}
\[[Hornig 072007|AA. Java References#Hornig 07]\] Problem areas: Characters

...