mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-26 14:28:30 +00:00
Make improvements
- wcsstr() is now linearly complex - strstr16() is now linearly complex - strstr() is now vectorized on aarch64 (10x) - strstr() now uses KMP on pathological cases - memmem() is now vectorized on aarch64 (10x) - memmem() now uses KMP on pathological cases - Disable shared_ptr::owner_before until fixed - Make iswlower(), iswupper() consistent with glibc - Remove figure space from iswspace() implementation - Include line and paragraph separator in iswcntrl() - Use Musl wcwidth(), iswalpha(), iswpunct(), towlower(), towupper()
This commit is contained in:
parent
e1528a71e2
commit
7c83f4abc8
67 changed files with 5602 additions and 5165 deletions
|
@ -30,7 +30,7 @@ TEST(towupper, test) {
|
|||
EXPECT_EQ(u'!', towupper(u'!'));
|
||||
EXPECT_EQ(u'A', towupper(u'a'));
|
||||
EXPECT_EQ(u'À', towupper(u'à'));
|
||||
EXPECT_EQ(L'𝛥', towupper(L'𝛿'));
|
||||
/* EXPECT_EQ(L'𝛥', towupper(L'𝛿')); */
|
||||
EXPECT_EQ(L'B', towupper(L'b'));
|
||||
EXPECT_EQ(u'Ꭰ', towupper(u'ꭰ'));
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ TEST(towlower, test) {
|
|||
EXPECT_EQ(u'!', towlower(u'!'));
|
||||
EXPECT_EQ(u'a', towlower(u'A'));
|
||||
EXPECT_EQ(u'à', towlower(u'À'));
|
||||
EXPECT_EQ(L'𝛿', towlower(L'𝛥'));
|
||||
/* EXPECT_EQ(L'𝛿', towlower(L'𝛥')); */
|
||||
EXPECT_EQ(L'b', towlower(L'B'));
|
||||
EXPECT_EQ(u'ꭰ', towlower(u'Ꭰ'));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue