mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] Add "numeric{Type,Value}" to Unicode.Scalar.Properties
This commit is contained in:
@@ -63,6 +63,7 @@ int32_t u_strToTitle(UChar *, int32_t, const UChar *, int32_t,
|
||||
UBreakIterator *, const char *, UErrorCode *);
|
||||
int32_t u_strToUpper(UChar *, int32_t, const UChar *, int32_t, const char *,
|
||||
UErrorCode *);
|
||||
double u_getNumericValue(UChar32);
|
||||
}
|
||||
|
||||
#else
|
||||
@@ -388,6 +389,10 @@ __swift_int32_t swift::__swift_stdlib_u_strToUpper(
|
||||
locale, ptr_cast<UErrorCode>(pErrorCode));
|
||||
}
|
||||
|
||||
double swift::__swift_stdlib_u_getNumericValue(__swift_stdlib_UChar32 c) {
|
||||
return u_getNumericValue(c);
|
||||
}
|
||||
|
||||
|
||||
// Force an autolink with ICU
|
||||
#if defined(__MACH__)
|
||||
|
||||
Reference in New Issue
Block a user