BloombergLP::bdlpcre::RegEx::Unnamed enum

Status codes distinguishing among results of match operations.

Synopsis

Declared in <bdlpcre_regex.h>

enum Unnamed enum;

Members

NameDescription
k_STATUS_SUCCESS successful completion of the operation
k_STATUS_NO_MATCH the subject string did not match the pattern
k_STATUS_DEPTH_LIMIT_FAILURE depthLimit() was exceeded
k_STATUS_JIT_STACK_LIMIT_FAILURE memory available for the JIT stack is not large enough (applicable only if pattern() was prepared with k_FLAG_JIT)
k_STATUS_UTF8_TRUNCATED_CHARACTER_FAILURE the UTF-8 string ends with a truncated UTF-8 character
k_STATUS_UTF8_SIGNIFICANT_BITS_VALUE_FAILURE the two most significant bits of the 2nd, 3rd or 4th byte of the UTF-8 character do not have the binary value 0b10
k_STATUS_UTF8_5_OR_6_BYTES_CHARACTER_FAILURE a UTF-8 character is either 5 or 6 bytes long
k_STATUS_UTF8_4_BYTES_CHARACTER_RANGE_FAILURE a 4-byte UTF-8 character has a value greater than 0x10ffff
k_STATUS_UTF8_3_BYTES_CHARACTER_RANGE_FAILURE a 3-byte UTF-8 character has a value in the range 0xd800 to 0xdfff
k_STATUS_UTF8_OVERLONG_CHARACTER_FAILURE a 2-, 3- or 4-byte UTF-8 character is "overlong", i.e. it codes for a value that can be represented by fewer bytes
k_STATUS_UTF8_FIRST_BYTE_SIGNIFICANT_BITS_FAILURE the two most significant bits of the first byte of a UTF-8 character have the binary value 0b10
k_STATUS_UTF8_FIRST_BYTE_WRONG_VALUE_FAILURE the first byte of a UTF-8 character has the value 0xfe or 0xff