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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Marshall Schor
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

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

Bruno P. Kinoshita-2
 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 <[hidden email]> 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: [hidden email]
For additional commands, e-mail: [hidden email]