Change: [Win32] Use Uniscribe instead of ICU for text caret handling.

This removes the need for the ICU lib on Windows.
This commit is contained in:
Michael Lutz
2018-05-26 22:51:02 +02:00
parent 33829dc6ab
commit eec3f40931
13 changed files with 216 additions and 81 deletions

View File

@@ -29,6 +29,10 @@
#include "os/windows/win32.h"
#endif
#ifdef WITH_UNISCRIBE
#include "os/windows/string_uniscribe.h"
#endif
#ifdef WITH_ICU_SORT
/* Required by strnatcmp. */
#include <unicode/ustring.h>
@@ -594,7 +598,14 @@ int strnatcmp(const char *s1, const char *s2, bool ignore_garbage_at_front)
return strcasecmp(s1, s2);
}
#ifdef WITH_ICU_SORT
#ifdef WITH_UNISCRIBE
/* static */ StringIterator *StringIterator::Create()
{
return new UniscribeStringIterator();
}
#elif defined(WITH_ICU_SORT)
#include <unicode/utext.h>
#include <unicode/brkiter.h>