00001 #ifndef PARSER_BITS_CLASS
00002 #define PARSER_BITS_CLASS
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "textual_dll.h"
00019
00021
00022 class TEXTUAL_CLASS_STYLE parser_bits
00023 {
00024 public:
00025 static void translate_CR_for_platform(istring &to_translate);
00027
00031 static istring substitute_env_vars(const istring &text,
00032 bool leave_unknown = true);
00034
00042 static bool is_printable_ascii(char to_check);
00044
00049 static bool white_space_no_cr(char to_check);
00051
00055 static bool is_eol(char to_check);
00057
00059 static bool white_space(char to_check);
00061
00064 static bool is_alphanumeric(char look_at);
00066
00067 static bool is_alphanumeric(const char *look_at, int len);
00069 static bool is_alphanumeric(const istring &look_at, int len);
00071
00072 static bool is_numeric(char look_at);
00074
00077 static bool is_numeric(const char *look_at, int len);
00079 static bool is_numeric(const istring &look_at, int len);
00081
00082 static bool is_hexadecimal(char look_at);
00084
00085 static bool is_hexadecimal(const char *look_at, int len);
00087 static bool is_hexadecimal(const istring &look_at, int len);
00089
00090 static bool is_identifier(char look_at);
00092
00093 static bool is_identifier(const char *look_at, int len);
00095
00096 static bool is_identifier(const istring &look_at, int len);
00098 };
00099
00100 #endif
00101