Bruno Haible <br...@clisp.org> writes: > Wow! New modules in such quality, 99% perfect, this is rare. > > Please squeeze in the attached patch ("git commit --amend"), > then you can push.
Thank you. Done. (I also had to convert GraphemeBreakTest.txt from DOS to Unix line-ends and remove trailing white space, because the Git hook refused to accept it otherwise. This is a little disappointing, because it would have been nice to use the upstream test file exactly. But the tweaked version should be equivalent.) > After this, you'll likely also want to write documentation about the new > modules. Which means, it's time to start filing a copyright assignment for > libunistring with the FSF. You find info how to request the copyright > assignment form from the FSF at > <http://www.gnu.org/prep/maintain/html_node/Copyright-Papers.html>. I started the process this morning. > The next modules will have a higher-level API, I imagine. You're welcome > to discuss the new API with me, before you implement it. I am thinking of something like: size_t u<#>_grapheme_len (const uint<#>_t *s, size_t n); which would return the number of units in the first grapheme cluster in S. I don't know what other functions would be useful. My own intended use, in GNU PSPP, is too odd to put into a general-purpose API like that of libunistring. Thanks, Ben. -- Ben Pfaff http://benpfaff.org