parser_bits.h

Go to the documentation of this file.
00001 #ifndef PARSER_BITS_CLASS
00002 #define PARSER_BITS_CLASS
00003 
00004 /*****************************************************************************\
00005 *                                                                             *
00006 *  Name   : parser_bits                                                       *
00007 *  Author : Chris Koeritz                                                     *
00008 *                                                                             *
00009 *******************************************************************************
00010 * Copyright (c) 2000-$now By Author.  This program is free software; you can  *
00011 * redistribute it and/or modify it under the terms of the GNU General Public  *
00012 * License as published by the Free Software Foundation; either version 2 of   *
00013 * the License or (at your option) any later version.  This is online at:      *
00014 *     http://www.fsf.org/copyleft/gpl.html                                    *
00015 * Please send any updates to: fred@gruntose.com                               *
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 

Generated on Fri Nov 28 04:29:33 2008 for HOOPLE Libraries by  doxygen 1.5.1