51 |
#define DEBUG |
#define DEBUG |
52 |
#endif |
#endif |
53 |
|
|
54 |
|
/* We do not support both EBCDIC and UTF-8 at the same time. The "configure" |
55 |
|
script prevents both being selected, but not everybody uses "configure". */ |
56 |
|
|
57 |
|
#if defined EBCDIC && defined SUPPORT_UTF8 |
58 |
|
#error The use of both EBCDIC and SUPPORT_UTF8 is not supported. |
59 |
|
#endif |
60 |
|
|
61 |
/* Use a macro for debugging printing, 'cause that eliminates the use of #ifdef |
/* Use a macro for debugging printing, 'cause that eliminates the use of #ifdef |
62 |
inline, and there are *still* stupid compilers about that don't like indented |
inline, and there are *still* stupid compilers about that don't like indented |
63 |
pre-processor statements, or at least there were when I first wrote this. After |
pre-processor statements, or at least there were when I first wrote this. After |
598 |
#define TRUE 1 |
#define TRUE 1 |
599 |
#endif |
#endif |
600 |
|
|
601 |
|
/* If PCRE is to support UTF-8 on EBCDIC platforms, we cannot use normal |
602 |
|
character constants like '*' because the compiler would emit their EBCDIC code, |
603 |
|
which is different from their ASCII/UTF-8 code. Instead we define macros for |
604 |
|
the characters so that they always use the ASCII/UTF-8 code when UTF-8 support |
605 |
|
is enabled. When UTF-8 support is not enabled, the definitions use character |
606 |
|
literals. Both character and string versions of each character are needed, and |
607 |
|
there are some longer strings as well. |
608 |
|
|
609 |
|
This means that, on EBCDIC platforms, the PCRE library can handle either |
610 |
|
EBCDIC, or UTF-8, but not both. To support both in the same compiled library |
611 |
|
would need different lookups depending on whether PCRE_UTF8 was set or not. |
612 |
|
This would make it impossible to use characters in switch/case statements, |
613 |
|
which would reduce performance. For a theoretical use (which nobody has asked |
614 |
|
for) in a minority area (EBCDIC platforms), this is not sensible. Any |
615 |
|
application that did need both could compile two versions of the library, using |
616 |
|
macros to give the functions distinct names. */ |
617 |
|
|
618 |
|
#ifndef SUPPORT_UTF8 |
619 |
|
|
620 |
|
/* UTF-8 support is not enabled; use the platform-dependent character literals |
621 |
|
so that PCRE works on both ASCII and EBCDIC platforms, in non-UTF-mode only. */ |
622 |
|
|
623 |
|
#define CHAR_HT '\t' |
624 |
|
#define CHAR_VT '\v' |
625 |
|
#define CHAR_FF '\f' |
626 |
|
#define CHAR_CR '\r' |
627 |
|
#define CHAR_NL '\n' |
628 |
|
#define CHAR_BS '\b' |
629 |
|
#define CHAR_BEL '\a' |
630 |
|
#ifdef EBCDIC |
631 |
|
#define CHAR_ESC '\047' |
632 |
|
#define CHAR_DEL '\007' |
633 |
|
#else |
634 |
|
#define CHAR_ESC '\033' |
635 |
|
#define CHAR_DEL '\177' |
636 |
|
#endif |
637 |
|
|
638 |
|
#define CHAR_SPACE ' ' |
639 |
|
#define CHAR_EXCLAMATION_MARK '!' |
640 |
|
#define CHAR_QUOTATION_MARK '"' |
641 |
|
#define CHAR_NUMBER_SIGN '#' |
642 |
|
#define CHAR_DOLLAR_SIGN '$' |
643 |
|
#define CHAR_PERCENT_SIGN '%' |
644 |
|
#define CHAR_AMPERSAND '&' |
645 |
|
#define CHAR_APOSTROPHE '\'' |
646 |
|
#define CHAR_LEFT_PARENTHESIS '(' |
647 |
|
#define CHAR_RIGHT_PARENTHESIS ')' |
648 |
|
#define CHAR_ASTERISK '*' |
649 |
|
#define CHAR_PLUS '+' |
650 |
|
#define CHAR_COMMA ',' |
651 |
|
#define CHAR_MINUS '-' |
652 |
|
#define CHAR_DOT '.' |
653 |
|
#define CHAR_SLASH '/' |
654 |
|
#define CHAR_0 '0' |
655 |
|
#define CHAR_1 '1' |
656 |
|
#define CHAR_2 '2' |
657 |
|
#define CHAR_3 '3' |
658 |
|
#define CHAR_4 '4' |
659 |
|
#define CHAR_5 '5' |
660 |
|
#define CHAR_6 '6' |
661 |
|
#define CHAR_7 '7' |
662 |
|
#define CHAR_8 '8' |
663 |
|
#define CHAR_9 '9' |
664 |
|
#define CHAR_COLON ':' |
665 |
|
#define CHAR_SEMICOLON ';' |
666 |
|
#define CHAR_LESS_THAN_SIGN '<' |
667 |
|
#define CHAR_EQUALS_SIGN '=' |
668 |
|
#define CHAR_GREATER_THAN_SIGN '>' |
669 |
|
#define CHAR_QUESTION_MARK '?' |
670 |
|
#define CHAR_COMMERCIAL_AT '@' |
671 |
|
#define CHAR_A 'A' |
672 |
|
#define CHAR_B 'B' |
673 |
|
#define CHAR_C 'C' |
674 |
|
#define CHAR_D 'D' |
675 |
|
#define CHAR_E 'E' |
676 |
|
#define CHAR_F 'F' |
677 |
|
#define CHAR_G 'G' |
678 |
|
#define CHAR_H 'H' |
679 |
|
#define CHAR_I 'I' |
680 |
|
#define CHAR_J 'J' |
681 |
|
#define CHAR_K 'K' |
682 |
|
#define CHAR_L 'L' |
683 |
|
#define CHAR_M 'M' |
684 |
|
#define CHAR_N 'N' |
685 |
|
#define CHAR_O 'O' |
686 |
|
#define CHAR_P 'P' |
687 |
|
#define CHAR_Q 'Q' |
688 |
|
#define CHAR_R 'R' |
689 |
|
#define CHAR_S 'S' |
690 |
|
#define CHAR_T 'T' |
691 |
|
#define CHAR_U 'U' |
692 |
|
#define CHAR_V 'V' |
693 |
|
#define CHAR_W 'W' |
694 |
|
#define CHAR_X 'X' |
695 |
|
#define CHAR_Y 'Y' |
696 |
|
#define CHAR_Z 'Z' |
697 |
|
#define CHAR_LEFT_SQUARE_BRACKET '[' |
698 |
|
#define CHAR_BACKSLASH '\\' |
699 |
|
#define CHAR_RIGHT_SQUARE_BRACKET ']' |
700 |
|
#define CHAR_CIRCUMFLEX_ACCENT '^' |
701 |
|
#define CHAR_UNDERSCORE '_' |
702 |
|
#define CHAR_GRAVE_ACCENT '`' |
703 |
|
#define CHAR_a 'a' |
704 |
|
#define CHAR_b 'b' |
705 |
|
#define CHAR_c 'c' |
706 |
|
#define CHAR_d 'd' |
707 |
|
#define CHAR_e 'e' |
708 |
|
#define CHAR_f 'f' |
709 |
|
#define CHAR_g 'g' |
710 |
|
#define CHAR_h 'h' |
711 |
|
#define CHAR_i 'i' |
712 |
|
#define CHAR_j 'j' |
713 |
|
#define CHAR_k 'k' |
714 |
|
#define CHAR_l 'l' |
715 |
|
#define CHAR_m 'm' |
716 |
|
#define CHAR_n 'n' |
717 |
|
#define CHAR_o 'o' |
718 |
|
#define CHAR_p 'p' |
719 |
|
#define CHAR_q 'q' |
720 |
|
#define CHAR_r 'r' |
721 |
|
#define CHAR_s 's' |
722 |
|
#define CHAR_t 't' |
723 |
|
#define CHAR_u 'u' |
724 |
|
#define CHAR_v 'v' |
725 |
|
#define CHAR_w 'w' |
726 |
|
#define CHAR_x 'x' |
727 |
|
#define CHAR_y 'y' |
728 |
|
#define CHAR_z 'z' |
729 |
|
#define CHAR_LEFT_CURLY_BRACKET '{' |
730 |
|
#define CHAR_VERTICAL_LINE '|' |
731 |
|
#define CHAR_RIGHT_CURLY_BRACKET '}' |
732 |
|
#define CHAR_TILDE '~' |
733 |
|
|
734 |
|
#define STR_HT "\t" |
735 |
|
#define STR_VT "\v" |
736 |
|
#define STR_FF "\f" |
737 |
|
#define STR_CR "\r" |
738 |
|
#define STR_NL "\n" |
739 |
|
#define STR_BS "\b" |
740 |
|
#define STR_BEL "\a" |
741 |
|
#ifdef EBCDIC |
742 |
|
#define STR_ESC "\047" |
743 |
|
#define STR_DEL "\007" |
744 |
|
#else |
745 |
|
#define STR_ESC "\033" |
746 |
|
#define STR_DEL "\177" |
747 |
|
#endif |
748 |
|
|
749 |
|
#define STR_SPACE " " |
750 |
|
#define STR_EXCLAMATION_MARK "!" |
751 |
|
#define STR_QUOTATION_MARK "\"" |
752 |
|
#define STR_NUMBER_SIGN "#" |
753 |
|
#define STR_DOLLAR_SIGN "$" |
754 |
|
#define STR_PERCENT_SIGN "%" |
755 |
|
#define STR_AMPERSAND "&" |
756 |
|
#define STR_APOSTROPHE "'" |
757 |
|
#define STR_LEFT_PARENTHESIS "(" |
758 |
|
#define STR_RIGHT_PARENTHESIS ")" |
759 |
|
#define STR_ASTERISK "*" |
760 |
|
#define STR_PLUS "+" |
761 |
|
#define STR_COMMA "," |
762 |
|
#define STR_MINUS "-" |
763 |
|
#define STR_DOT "." |
764 |
|
#define STR_SLASH "/" |
765 |
|
#define STR_0 "0" |
766 |
|
#define STR_1 "1" |
767 |
|
#define STR_2 "2" |
768 |
|
#define STR_3 "3" |
769 |
|
#define STR_4 "4" |
770 |
|
#define STR_5 "5" |
771 |
|
#define STR_6 "6" |
772 |
|
#define STR_7 "7" |
773 |
|
#define STR_8 "8" |
774 |
|
#define STR_9 "9" |
775 |
|
#define STR_COLON ":" |
776 |
|
#define STR_SEMICOLON ";" |
777 |
|
#define STR_LESS_THAN_SIGN "<" |
778 |
|
#define STR_EQUALS_SIGN "=" |
779 |
|
#define STR_GREATER_THAN_SIGN ">" |
780 |
|
#define STR_QUESTION_MARK "?" |
781 |
|
#define STR_COMMERCIAL_AT "@" |
782 |
|
#define STR_A "A" |
783 |
|
#define STR_B "B" |
784 |
|
#define STR_C "C" |
785 |
|
#define STR_D "D" |
786 |
|
#define STR_E "E" |
787 |
|
#define STR_F "F" |
788 |
|
#define STR_G "G" |
789 |
|
#define STR_H "H" |
790 |
|
#define STR_I "I" |
791 |
|
#define STR_J "J" |
792 |
|
#define STR_K "K" |
793 |
|
#define STR_L "L" |
794 |
|
#define STR_M "M" |
795 |
|
#define STR_N "N" |
796 |
|
#define STR_O "O" |
797 |
|
#define STR_P "P" |
798 |
|
#define STR_Q "Q" |
799 |
|
#define STR_R "R" |
800 |
|
#define STR_S "S" |
801 |
|
#define STR_T "T" |
802 |
|
#define STR_U "U" |
803 |
|
#define STR_V "V" |
804 |
|
#define STR_W "W" |
805 |
|
#define STR_X "X" |
806 |
|
#define STR_Y "Y" |
807 |
|
#define STR_Z "Z" |
808 |
|
#define STR_LEFT_SQUARE_BRACKET "[" |
809 |
|
#define STR_BACKSLASH "\\" |
810 |
|
#define STR_RIGHT_SQUARE_BRACKET "]" |
811 |
|
#define STR_CIRCUMFLEX_ACCENT "^" |
812 |
|
#define STR_UNDERSCORE "_" |
813 |
|
#define STR_GRAVE_ACCENT "`" |
814 |
|
#define STR_a "a" |
815 |
|
#define STR_b "b" |
816 |
|
#define STR_c "c" |
817 |
|
#define STR_d "d" |
818 |
|
#define STR_e "e" |
819 |
|
#define STR_f "f" |
820 |
|
#define STR_g "g" |
821 |
|
#define STR_h "h" |
822 |
|
#define STR_i "i" |
823 |
|
#define STR_j "j" |
824 |
|
#define STR_k "k" |
825 |
|
#define STR_l "l" |
826 |
|
#define STR_m "m" |
827 |
|
#define STR_n "n" |
828 |
|
#define STR_o "o" |
829 |
|
#define STR_p "p" |
830 |
|
#define STR_q "q" |
831 |
|
#define STR_r "r" |
832 |
|
#define STR_s "s" |
833 |
|
#define STR_t "t" |
834 |
|
#define STR_u "u" |
835 |
|
#define STR_v "v" |
836 |
|
#define STR_w "w" |
837 |
|
#define STR_x "x" |
838 |
|
#define STR_y "y" |
839 |
|
#define STR_z "z" |
840 |
|
#define STR_LEFT_CURLY_BRACKET "{" |
841 |
|
#define STR_VERTICAL_LINE "|" |
842 |
|
#define STR_RIGHT_CURLY_BRACKET "}" |
843 |
|
#define STR_TILDE "~" |
844 |
|
|
845 |
|
#define STRING_ACCEPT0 "ACCEPT\0" |
846 |
|
#define STRING_COMMIT0 "COMMIT\0" |
847 |
|
#define STRING_F0 "F\0" |
848 |
|
#define STRING_FAIL0 "FAIL\0" |
849 |
|
#define STRING_PRUNE0 "PRUNE\0" |
850 |
|
#define STRING_SKIP0 "SKIP\0" |
851 |
|
#define STRING_THEN "THEN" |
852 |
|
|
853 |
|
#define STRING_alpha0 "alpha\0" |
854 |
|
#define STRING_lower0 "lower\0" |
855 |
|
#define STRING_upper0 "upper\0" |
856 |
|
#define STRING_alnum0 "alnum\0" |
857 |
|
#define STRING_ascii0 "ascii\0" |
858 |
|
#define STRING_blank0 "blank\0" |
859 |
|
#define STRING_cntrl0 "cntrl\0" |
860 |
|
#define STRING_digit0 "digit\0" |
861 |
|
#define STRING_graph0 "graph\0" |
862 |
|
#define STRING_print0 "print\0" |
863 |
|
#define STRING_punct0 "punct\0" |
864 |
|
#define STRING_space0 "space\0" |
865 |
|
#define STRING_word0 "word\0" |
866 |
|
#define STRING_xdigit "xdigit" |
867 |
|
|
868 |
|
#define STRING_DEFINE "DEFINE" |
869 |
|
|
870 |
|
#define STRING_CR_RIGHTPAR "CR)" |
871 |
|
#define STRING_LF_RIGHTPAR "LF)" |
872 |
|
#define STRING_CRLF_RIGHTPAR "CRLF)" |
873 |
|
#define STRING_ANY_RIGHTPAR "ANY)" |
874 |
|
#define STRING_ANYCRLF_RIGHTPAR "ANYCRLF)" |
875 |
|
#define STRING_BSR_ANYCRLF_RIGHTPAR "BSR_ANYCRLF)" |
876 |
|
#define STRING_BSR_UNICODE_RIGHTPAR "BSR_UNICODE)" |
877 |
|
|
878 |
|
#else /* SUPPORT_UTF8 */ |
879 |
|
|
880 |
|
/* UTF-8 support is enabled; always use UTF-8 (=ASCII) character codes. This |
881 |
|
works in both modes non-EBCDIC platforms, and on EBCDIC platforms in UTF-8 mode |
882 |
|
only. */ |
883 |
|
|
884 |
|
#define CHAR_HT '\011' |
885 |
|
#define CHAR_VT '\013' |
886 |
|
#define CHAR_FF '\014' |
887 |
|
#define CHAR_CR '\015' |
888 |
|
#define CHAR_NL '\012' |
889 |
|
#define CHAR_BS '\010' |
890 |
|
#define CHAR_BEL '\007' |
891 |
|
#define CHAR_ESC '\033' |
892 |
|
#define CHAR_DEL '\177' |
893 |
|
|
894 |
|
#define CHAR_SPACE '\040' |
895 |
|
#define CHAR_EXCLAMATION_MARK '\041' |
896 |
|
#define CHAR_QUOTATION_MARK '\042' |
897 |
|
#define CHAR_NUMBER_SIGN '\043' |
898 |
|
#define CHAR_DOLLAR_SIGN '\044' |
899 |
|
#define CHAR_PERCENT_SIGN '\045' |
900 |
|
#define CHAR_AMPERSAND '\046' |
901 |
|
#define CHAR_APOSTROPHE '\047' |
902 |
|
#define CHAR_LEFT_PARENTHESIS '\050' |
903 |
|
#define CHAR_RIGHT_PARENTHESIS '\051' |
904 |
|
#define CHAR_ASTERISK '\052' |
905 |
|
#define CHAR_PLUS '\053' |
906 |
|
#define CHAR_COMMA '\054' |
907 |
|
#define CHAR_MINUS '\055' |
908 |
|
#define CHAR_DOT '\056' |
909 |
|
#define CHAR_SLASH '\057' |
910 |
|
#define CHAR_0 '\060' |
911 |
|
#define CHAR_1 '\061' |
912 |
|
#define CHAR_2 '\062' |
913 |
|
#define CHAR_3 '\063' |
914 |
|
#define CHAR_4 '\064' |
915 |
|
#define CHAR_5 '\065' |
916 |
|
#define CHAR_6 '\066' |
917 |
|
#define CHAR_7 '\067' |
918 |
|
#define CHAR_8 '\070' |
919 |
|
#define CHAR_9 '\071' |
920 |
|
#define CHAR_COLON '\072' |
921 |
|
#define CHAR_SEMICOLON '\073' |
922 |
|
#define CHAR_LESS_THAN_SIGN '\074' |
923 |
|
#define CHAR_EQUALS_SIGN '\075' |
924 |
|
#define CHAR_GREATER_THAN_SIGN '\076' |
925 |
|
#define CHAR_QUESTION_MARK '\077' |
926 |
|
#define CHAR_COMMERCIAL_AT '\100' |
927 |
|
#define CHAR_A '\101' |
928 |
|
#define CHAR_B '\102' |
929 |
|
#define CHAR_C '\103' |
930 |
|
#define CHAR_D '\104' |
931 |
|
#define CHAR_E '\105' |
932 |
|
#define CHAR_F '\106' |
933 |
|
#define CHAR_G '\107' |
934 |
|
#define CHAR_H '\110' |
935 |
|
#define CHAR_I '\111' |
936 |
|
#define CHAR_J '\112' |
937 |
|
#define CHAR_K '\113' |
938 |
|
#define CHAR_L '\114' |
939 |
|
#define CHAR_M '\115' |
940 |
|
#define CHAR_N '\116' |
941 |
|
#define CHAR_O '\117' |
942 |
|
#define CHAR_P '\120' |
943 |
|
#define CHAR_Q '\121' |
944 |
|
#define CHAR_R '\122' |
945 |
|
#define CHAR_S '\123' |
946 |
|
#define CHAR_T '\124' |
947 |
|
#define CHAR_U '\125' |
948 |
|
#define CHAR_V '\126' |
949 |
|
#define CHAR_W '\127' |
950 |
|
#define CHAR_X '\130' |
951 |
|
#define CHAR_Y '\131' |
952 |
|
#define CHAR_Z '\132' |
953 |
|
#define CHAR_LEFT_SQUARE_BRACKET '\133' |
954 |
|
#define CHAR_BACKSLASH '\134' |
955 |
|
#define CHAR_RIGHT_SQUARE_BRACKET '\135' |
956 |
|
#define CHAR_CIRCUMFLEX_ACCENT '\136' |
957 |
|
#define CHAR_UNDERSCORE '\137' |
958 |
|
#define CHAR_GRAVE_ACCENT '\140' |
959 |
|
#define CHAR_a '\141' |
960 |
|
#define CHAR_b '\142' |
961 |
|
#define CHAR_c '\143' |
962 |
|
#define CHAR_d '\144' |
963 |
|
#define CHAR_e '\145' |
964 |
|
#define CHAR_f '\146' |
965 |
|
#define CHAR_g '\147' |
966 |
|
#define CHAR_h '\150' |
967 |
|
#define CHAR_i '\151' |
968 |
|
#define CHAR_j '\152' |
969 |
|
#define CHAR_k '\153' |
970 |
|
#define CHAR_l '\154' |
971 |
|
#define CHAR_m '\155' |
972 |
|
#define CHAR_n '\156' |
973 |
|
#define CHAR_o '\157' |
974 |
|
#define CHAR_p '\160' |
975 |
|
#define CHAR_q '\161' |
976 |
|
#define CHAR_r '\162' |
977 |
|
#define CHAR_s '\163' |
978 |
|
#define CHAR_t '\164' |
979 |
|
#define CHAR_u '\165' |
980 |
|
#define CHAR_v '\166' |
981 |
|
#define CHAR_w '\167' |
982 |
|
#define CHAR_x '\170' |
983 |
|
#define CHAR_y '\171' |
984 |
|
#define CHAR_z '\172' |
985 |
|
#define CHAR_LEFT_CURLY_BRACKET '\173' |
986 |
|
#define CHAR_VERTICAL_LINE '\174' |
987 |
|
#define CHAR_RIGHT_CURLY_BRACKET '\175' |
988 |
|
#define CHAR_TILDE '\176' |
989 |
|
|
990 |
|
#define STR_HT "\011" |
991 |
|
#define STR_VT "\013" |
992 |
|
#define STR_FF "\014" |
993 |
|
#define STR_CR "\015" |
994 |
|
#define STR_NL "\012" |
995 |
|
#define STR_BS "\010" |
996 |
|
#define STR_BEL "\007" |
997 |
|
#define STR_ESC "\033" |
998 |
|
#define STR_DEL "\177" |
999 |
|
|
1000 |
|
#define STR_SPACE "\040" |
1001 |
|
#define STR_EXCLAMATION_MARK "\041" |
1002 |
|
#define STR_QUOTATION_MARK "\042" |
1003 |
|
#define STR_NUMBER_SIGN "\043" |
1004 |
|
#define STR_DOLLAR_SIGN "\044" |
1005 |
|
#define STR_PERCENT_SIGN "\045" |
1006 |
|
#define STR_AMPERSAND "\046" |
1007 |
|
#define STR_APOSTROPHE "\047" |
1008 |
|
#define STR_LEFT_PARENTHESIS "\050" |
1009 |
|
#define STR_RIGHT_PARENTHESIS "\051" |
1010 |
|
#define STR_ASTERISK "\052" |
1011 |
|
#define STR_PLUS "\053" |
1012 |
|
#define STR_COMMA "\054" |
1013 |
|
#define STR_MINUS "\055" |
1014 |
|
#define STR_DOT "\056" |
1015 |
|
#define STR_SLASH "\057" |
1016 |
|
#define STR_0 "\060" |
1017 |
|
#define STR_1 "\061" |
1018 |
|
#define STR_2 "\062" |
1019 |
|
#define STR_3 "\063" |
1020 |
|
#define STR_4 "\064" |
1021 |
|
#define STR_5 "\065" |
1022 |
|
#define STR_6 "\066" |
1023 |
|
#define STR_7 "\067" |
1024 |
|
#define STR_8 "\070" |
1025 |
|
#define STR_9 "\071" |
1026 |
|
#define STR_COLON "\072" |
1027 |
|
#define STR_SEMICOLON "\073" |
1028 |
|
#define STR_LESS_THAN_SIGN "\074" |
1029 |
|
#define STR_EQUALS_SIGN "\075" |
1030 |
|
#define STR_GREATER_THAN_SIGN "\076" |
1031 |
|
#define STR_QUESTION_MARK "\077" |
1032 |
|
#define STR_COMMERCIAL_AT "\100" |
1033 |
|
#define STR_A "\101" |
1034 |
|
#define STR_B "\102" |
1035 |
|
#define STR_C "\103" |
1036 |
|
#define STR_D "\104" |
1037 |
|
#define STR_E "\105" |
1038 |
|
#define STR_F "\106" |
1039 |
|
#define STR_G "\107" |
1040 |
|
#define STR_H "\110" |
1041 |
|
#define STR_I "\111" |
1042 |
|
#define STR_J "\112" |
1043 |
|
#define STR_K "\113" |
1044 |
|
#define STR_L "\114" |
1045 |
|
#define STR_M "\115" |
1046 |
|
#define STR_N "\116" |
1047 |
|
#define STR_O "\117" |
1048 |
|
#define STR_P "\120" |
1049 |
|
#define STR_Q "\121" |
1050 |
|
#define STR_R "\122" |
1051 |
|
#define STR_S "\123" |
1052 |
|
#define STR_T "\124" |
1053 |
|
#define STR_U "\125" |
1054 |
|
#define STR_V "\126" |
1055 |
|
#define STR_W "\127" |
1056 |
|
#define STR_X "\130" |
1057 |
|
#define STR_Y "\131" |
1058 |
|
#define STR_Z "\132" |
1059 |
|
#define STR_LEFT_SQUARE_BRACKET "\133" |
1060 |
|
#define STR_BACKSLASH "\134" |
1061 |
|
#define STR_RIGHT_SQUARE_BRACKET "\135" |
1062 |
|
#define STR_CIRCUMFLEX_ACCENT "\136" |
1063 |
|
#define STR_UNDERSCORE "\137" |
1064 |
|
#define STR_GRAVE_ACCENT "\140" |
1065 |
|
#define STR_a "\141" |
1066 |
|
#define STR_b "\142" |
1067 |
|
#define STR_c "\143" |
1068 |
|
#define STR_d "\144" |
1069 |
|
#define STR_e "\145" |
1070 |
|
#define STR_f "\146" |
1071 |
|
#define STR_g "\147" |
1072 |
|
#define STR_h "\150" |
1073 |
|
#define STR_i "\151" |
1074 |
|
#define STR_j "\152" |
1075 |
|
#define STR_k "\153" |
1076 |
|
#define STR_l "\154" |
1077 |
|
#define STR_m "\155" |
1078 |
|
#define STR_n "\156" |
1079 |
|
#define STR_o "\157" |
1080 |
|
#define STR_p "\160" |
1081 |
|
#define STR_q "\161" |
1082 |
|
#define STR_r "\162" |
1083 |
|
#define STR_s "\163" |
1084 |
|
#define STR_t "\164" |
1085 |
|
#define STR_u "\165" |
1086 |
|
#define STR_v "\166" |
1087 |
|
#define STR_w "\167" |
1088 |
|
#define STR_x "\170" |
1089 |
|
#define STR_y "\171" |
1090 |
|
#define STR_z "\172" |
1091 |
|
#define STR_LEFT_CURLY_BRACKET "\173" |
1092 |
|
#define STR_VERTICAL_LINE "\174" |
1093 |
|
#define STR_RIGHT_CURLY_BRACKET "\175" |
1094 |
|
#define STR_TILDE "\176" |
1095 |
|
|
1096 |
|
#define STRING_ACCEPT0 STR_A STR_C STR_C STR_E STR_P STR_T "\0" |
1097 |
|
#define STRING_COMMIT0 STR_C STR_O STR_M STR_M STR_I STR_T "\0" |
1098 |
|
#define STRING_F0 STR_F "\0" |
1099 |
|
#define STRING_FAIL0 STR_F STR_A STR_I STR_L "\0" |
1100 |
|
#define STRING_PRUNE0 STR_P STR_R STR_U STR_N STR_E "\0" |
1101 |
|
#define STRING_SKIP0 STR_S STR_K STR_I STR_P "\0" |
1102 |
|
#define STRING_THEN STR_T STR_H STR_E STR_N |
1103 |
|
|
1104 |
|
#define STRING_alpha0 STR_a STR_l STR_p STR_h STR_a "\0" |
1105 |
|
#define STRING_lower0 STR_l STR_o STR_w STR_e STR_r "\0" |
1106 |
|
#define STRING_upper0 STR_u STR_p STR_p STR_e STR_r "\0" |
1107 |
|
#define STRING_alnum0 STR_a STR_l STR_n STR_u STR_m "\0" |
1108 |
|
#define STRING_ascii0 STR_a STR_s STR_c STR_i STR_i "\0" |
1109 |
|
#define STRING_blank0 STR_b STR_l STR_a STR_n STR_k "\0" |
1110 |
|
#define STRING_cntrl0 STR_c STR_n STR_t STR_r STR_l "\0" |
1111 |
|
#define STRING_digit0 STR_d STR_i STR_g STR_i STR_t "\0" |
1112 |
|
#define STRING_graph0 STR_g STR_r STR_a STR_p STR_h "\0" |
1113 |
|
#define STRING_print0 STR_p STR_r STR_i STR_n STR_t "\0" |
1114 |
|
#define STRING_punct0 STR_p STR_u STR_n STR_c STR_t "\0" |
1115 |
|
#define STRING_space0 STR_s STR_p STR_a STR_c STR_e "\0" |
1116 |
|
#define STRING_word0 STR_w STR_o STR_r STR_d "\0" |
1117 |
|
#define STRING_xdigit STR_x STR_d STR_i STR_g STR_i STR_t |
1118 |
|
|
1119 |
|
#define STRING_DEFINE STR_D STR_E STR_F STR_I STR_N STR_E |
1120 |
|
|
1121 |
|
#define STRING_CR_RIGHTPAR STR_C STR_R STR_RIGHT_PARENTHESIS |
1122 |
|
#define STRING_LF_RIGHTPAR STR_L STR_F STR_RIGHT_PARENTHESIS |
1123 |
|
#define STRING_CRLF_RIGHTPAR STR_C STR_R STR_L STR_F STR_RIGHT_PARENTHESIS |
1124 |
|
#define STRING_ANY_RIGHTPAR STR_A STR_N STR_Y STR_RIGHT_PARENTHESIS |
1125 |
|
#define STRING_ANYCRLF_RIGHTPAR STR_A STR_N STR_Y STR_C STR_R STR_L STR_F STR_RIGHT_PARENTHESIS |
1126 |
|
#define STRING_BSR_ANYCRLF_RIGHTPAR STR_B STR_S STR_R STR_UNDERSCORE STR_A STR_N STR_Y STR_C STR_R STR_L STR_F STR_RIGHT_PARENTHESIS |
1127 |
|
#define STRING_BSR_UNICODE_RIGHTPAR STR_B STR_S STR_R STR_UNDERSCORE STR_U STR_N STR_I STR_C STR_O STR_D STR_E STR_RIGHT_PARENTHESIS |
1128 |
|
|
1129 |
|
#endif /* SUPPORT_UTF8 */ |
1130 |
|
|
1131 |
/* Escape items that are just an encoding of a particular data value. */ |
/* Escape items that are just an encoding of a particular data value. */ |
1132 |
|
|
1133 |
#ifndef ESC_e |
#ifndef ESC_e |
1134 |
#define ESC_e 27 |
#define ESC_e CHAR_ESC |
1135 |
#endif |
#endif |
1136 |
|
|
1137 |
#ifndef ESC_f |
#ifndef ESC_f |
1138 |
#define ESC_f '\f' |
#define ESC_f CHAR_FF |
1139 |
#endif |
#endif |
1140 |
|
|
1141 |
#ifndef ESC_n |
#ifndef ESC_n |
1142 |
#define ESC_n '\n' |
#define ESC_n CHAR_NL |
1143 |
#endif |
#endif |
1144 |
|
|
1145 |
#ifndef ESC_r |
#ifndef ESC_r |
1146 |
#define ESC_r '\r' |
#define ESC_r CHAR_CR |
1147 |
#endif |
#endif |
1148 |
|
|
1149 |
/* We can't officially use ESC_t because it is a POSIX reserved identifier |
/* We can't officially use ESC_t because it is a POSIX reserved identifier |
1150 |
(presumably because of all the others like size_t). */ |
(presumably because of all the others like size_t). */ |
1151 |
|
|
1152 |
#ifndef ESC_tee |
#ifndef ESC_tee |
1153 |
#define ESC_tee '\t' |
#define ESC_tee CHAR_HT |
1154 |
#endif |
#endif |
1155 |
|
|
1156 |
/* Codes for different types of Unicode property */ |
/* Codes for different types of Unicode property */ |