Lines Matching defs:uv
148 #define uvoffuni_to_utf8_flags(d,uv,flags) \
149 uvoffuni_to_utf8_flags_msgs(d, uv, flags, 0)
151 #define uvchr_to_utf8_flags(d,uv,flags) \
152 uvchr_to_utf8_flags_msgs(d,uv,flags, 0)
153 #define uvchr_to_utf8_flags_msgs(d,uv,flags,msgs) \
154 uvoffuni_to_utf8_flags_msgs(d,NATIVE_TO_UNI(uv),flags, msgs)
529 /* Compute the number of UTF-8 bytes required for representing the input uv,
537 #define OFFUNISKIP(uv) \
538 ((OFFUNI_IS_INVARIANT(uv)) \
540 : (OFFUNISKIP_helper_(uv) UNISKIP_BY_MSB_(msbit_pos(uv))))
542 /* We need to go to MAX_BYTES when we can't represent 'uv' by the number of
549 # define OFFUNISKIP_helper_(uv) \
550 UNLIKELY(uv > nBIT_UMAX(6 * UTF_CONTINUATION_BYTE_INFO_BITS)) \
553 # define OFFUNISKIP_helper_(uv)
565 #define UVCHR_SKIP(uv) OFFUNISKIP(NATIVE_TO_UNI(uv))
567 #define NATIVE_SKIP(uv) UVCHR_SKIP(uv) /* Old terminology */
573 #define UNISKIP(uv) UVCHR_SKIP(uv)
590 #define UTF_START_BYTE(uv, bits) \
591 (__ASSERT_((uv) >> ((bits) - 1)) /* At least 'bits' */ \
592 __ASSERT_(((uv) & ~nBIT_MASK(bits)) == 0) /* No extra bits */ \
594 | ((uv) >> (((bits) / UTF_CONTINUATION_BYTE_INFO_BITS) \
606 #define UTF_FIRST_CONT_BYTE(uv, bits) \
607 (__ASSERT_((uv) >> ((bits) - 1)) /* At least 'bits' */ \
608 __ASSERT_(((uv) & ~nBIT_MASK(bits)) == 0) /* No extra bits */ \
611 & ((uv) >> ((((bits) / UTF_CONTINUATION_BYTE_INFO_BITS) - 1) \
960 =for apidoc Am|bool|UNICODE_IS_SURROGATE|const UV uv
962 Returns a boolean as to whether or not C<uv> is one of the Unicode surrogate
976 #define UNICODE_IS_SURROGATE(uv) UNLIKELY(inRANGE(uv, UNICODE_SURROGATE_FIRST, \
986 =for apidoc Am|bool|UNICODE_IS_REPLACEMENT|const UV uv
988 Returns a boolean as to whether or not C<uv> is the Unicode REPLACEMENT
1002 #define UNICODE_IS_REPLACEMENT(uv) UNLIKELY((UV) (uv) == UNICODE_REPLACEMENT)
1014 =for apidoc Am|bool|UNICODE_IS_SUPER|const UV uv
1016 Returns a boolean as to whether or not C<uv> is above the maximum legal Unicode
1022 #define UNICODE_IS_SUPER(uv) UNLIKELY((UV) (uv) > PERL_UNICODE_MAX)
1063 =for apidoc Am|bool|UNICODE_IS_NONCHAR|const UV uv
1065 Returns a boolean as to whether or not C<uv> is one of the Unicode
1071 /* Is 'uv' one of the 32 contiguous-range noncharacters? */
1072 #define UNICODE_IS_32_CONTIGUOUS_NONCHARS(uv) \
1073 UNLIKELY(inRANGE(uv, 0xFDD0, 0xFDEF))
1075 /* Is 'uv' one of the 34 plane-ending noncharacters 0xFFFE, 0xFFFF, 0x1FFFE,
1076 * 0x1FFFF, ... 0x10FFFE, 0x10FFFF, given that we know that 'uv' is not above
1078 #define UNICODE_IS_END_PLANE_NONCHAR_GIVEN_NOT_SUPER(uv) \
1079 UNLIKELY(((UV) (uv) & 0xFFFE) == 0xFFFE)
1081 #define UNICODE_IS_NONCHAR(uv) \
1082 ( UNLIKELY(UNICODE_IS_32_CONTIGUOUS_NONCHARS(uv)) \
1083 || ( UNLIKELY(UNICODE_IS_END_PLANE_NONCHAR_GIVEN_NOT_SUPER(uv)) \
1084 && LIKELY(! UNICODE_IS_SUPER(uv))))
1111 #define isUNICODE_POSSIBLY_PROBLEMATIC(uv) ((uv) >= UNICODE_SURROGATE_FIRST)
1131 #define UNICODE_IS_PERL_EXTENDED(uv) \
1132 UNLIKELY((UV) (uv) > nBIT_UMAX(31 - ONE_IF_EBCDIC_ZERO_IF_NOT))
1269 #define UNICODE_IS_BYTE_ORDER_MARK(uv) UNLIKELY((UV) (uv) \