mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Minor unicode range handling improvements
This commit is contained in:
parent
7bf1179f60
commit
7274cbaa55
4 changed files with 43 additions and 29 deletions
|
@ -652,22 +652,7 @@ uni_cop(unichar u)
|
|||
return GSPrivateUniCop(u);
|
||||
}
|
||||
|
||||
BOOL
|
||||
uni_isnonsp(unichar u)
|
||||
{
|
||||
/*
|
||||
* Treating upper surrogates as non-spacing is a convenient solution
|
||||
* to a number of issues with UTF-16
|
||||
*/
|
||||
if ((u >= 0xdc00) && (u <= 0xdfff))
|
||||
return YES;
|
||||
|
||||
// FIXME check is uni_cop good for this
|
||||
if (GSPrivateUniCop(u))
|
||||
return YES;
|
||||
else
|
||||
return NO;
|
||||
}
|
||||
// uni_isnonsp(unichar u) now implemented in NSString.m
|
||||
|
||||
unichar*
|
||||
uni_is_decomp(unichar u)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue