You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Marshall Schor <ms...@schor.com> on 2019/11/22 21:59:20 UTC

[Text][Lang] support for stringutils like methods with surrogate char strings?

In looking at the code, it seems these are designed for strings not having
surrogate characters.

Is there a variant somewhere for these methods which work with strings having
surrogate characters?

If not, are there plans for this kind of thing in the near future?

- Marshall Schor


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Re: [Text][Lang] support for stringutils like methods with surrogate char strings?

Posted by "Bruno P. Kinoshita" <ki...@apache.org>.
 Hi Marshall,
Not aware of variants supporting surrogate char strings.

Some methods and classes that were more text-oriented from [lang] were moved to [text]. And some new code in [text] already supports surrogate characters (there's some support in CharSequenceTranslator, JavaUnicodeEscaper, UnicodeUnpairedSurrogateRemover, StringEscapeUtils).
I remember seeing some discussion around supporting CharSequences and surrogate pairs in tickets & PR's for [text]. Supporting it is not easy, especially when you already have an API in place.
But providing alternative methods, or adding support to surrogate char strings in the existing methods would be a good improvement for the current API if possible.
If you have use cases for some of the existing methods, feel free to create a JIRA issue for either [text] and/or [lang], explaining your requirements. Then eventually we may get some contributor volunteering to work on it.
CheersBruno



    On Saturday, 23 November 2019, 10:59:36 am NZDT, Marshall Schor <ms...@schor.com> wrote:  
 
 In looking at the code, it seems these are designed for strings not having
surrogate characters.

Is there a variant somewhere for these methods which work with strings having
surrogate characters?

If not, are there plans for this kind of thing in the near future?

- Marshall Schor


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org