From 3f60bca9e90da3805d82a7651d4b26596c475959 Mon Sep 17 00:00:00 2001 From: Alexis Hunt Date: Sat, 9 Jul 2011 00:56:23 +0000 Subject: Implement generalized table lookups for upper, lower, and character traits. To the best of my knowledge, this will not break the ABI for Apple. However, it does introduce three publicly visible (although with reserved name) functions that will fail to link against the just-shipped Apple version of libc++. Since they are not used in any inline functions, no actual breakage should occur. If Howard doesn't want to put undefined functions (even internal ones) into a header, they could be surrounded by additional conditional compilation. llvm-svn: 134781 --- libcxx/include/__locale | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libcxx/include/__locale') diff --git a/libcxx/include/__locale b/libcxx/include/__locale index 6103409471e..521da04926c 100644 --- a/libcxx/include/__locale +++ b/libcxx/include/__locale @@ -302,7 +302,11 @@ locale::operator()(const basic_string<_CharT, _Traits, _Allocator>& __x, class _LIBCPP_VISIBLE ctype_base { public: +#ifdef __GLIBC__ + typedef unsigned short mask; +#else typedef __uint32_t mask; +#endif #if __APPLE__ static const mask space = _CTYPE_S; @@ -537,6 +541,8 @@ public: #endif _LIBCPP_ALWAYS_INLINE const mask* table() const _NOEXCEPT {return __tab_;} static const mask* classic_table() _NOEXCEPT; + static const int* __classic_upper_table() _NOEXCEPT; + static const int* __classic_lower_table() _NOEXCEPT; protected: ~ctype(); -- cgit v1.2.3