Diff for /parser3/src/include/pa_string.h between versions 1.52 and 1.55

version 1.52, 2001/03/25 08:52:34 version 1.55, 2001/03/29 15:36:15
Line 31 Line 31
                 const char *src, size_t size,  \                  const char *src, size_t size,  \
                 String::Untaint_lang lang, \                  String::Untaint_lang lang, \
                 const char *file, uint line                  const char *file, uint line
 /// appends clean piece to String  @see String::real_append  /// appends piece to String  @see String::real_append
 #       define APPEND(src, size, file, line) \  #       define APPEND(src, size, lang, file, line) \
         real_append(src, size, String::UL_NO, file, line)                  real_append(src, size, lang, file, line)
 /// appends tainted piece to String  @see String::real_append  
 #       define APPEND_TAINTED(src, size, file, line) \  
         real_append(src, size, String::UL_YES, file, line)  
 #       define APPEND_SPECIFIC_TAINTED(src, size, lang, file, line) \  
         real_append(src, size, lang, file, line)  
 #else  #else
 #       define STRING_APPEND_PARAMS \  #       define STRING_APPEND_PARAMS \
                 const char *src, \                  const char *src, \
                 size_t size, \                  size_t size, \
                 String::Untaint_lang lang                  String::Untaint_lang lang
   /// appends piece to String  @see String::real_append
   #       define APPEND(src, size, lang, file, line) \
                   real_append(src, size, lang)
   #endif
 /// appends clean piece to String  @see String::real_append  /// appends clean piece to String  @see String::real_append
 #       define APPEND(src, size, file, line) \  #define APPEND_CLEAN(src, size, file, line) \
         real_append(src, size, String::UL_NO)          APPEND(src, size, String::UL_NO, file, line)
 /// appends tainted piece to String  @see String::real_append  /// appends tainted piece to String  @see String::real_append
 #       define APPEND_TAINTED(src, size, file, line) \  #define APPEND_TAINTED(src, size, file, line) \
         real_append(src, size, String::UL_YES)          APPEND(src, size, String::UL_YES, file, line)
 #       define APPEND_SPECIFIC_TAINTED(src, size, lang, file, line) \  
         real_append(src, size, lang)  
 #endif  
 /// handy: appends const char* piece to String  @see String::real_append  /// handy: appends const char* piece to String  @see String::real_append
 #define APPEND_CONST(src) APPEND(src, 0, 0, 0)  #define APPEND_CONST(src) APPEND_CLEAN(src, 0, 0, 0)
   
 /**   /** 
         Pooled string.          Pooled string.
Line 119  public: Line 115  public:
                 return result;                  return result;
         }          }
         /** append fragment          /** append fragment
                 @see APPEND, APPEND_TAINTED, APPEND_CONST                  @see APPEND_CLEAN, APPEND_TAINTED, APPEND_CONST
         */          */
         String& real_append(STRING_APPEND_PARAMS);          String& real_append(STRING_APPEND_PARAMS);
         /// @return <0 ==0 or >0 depending on comparison result          /// @return <0 ==0 or >0 depending on comparison result
Line 163  public: Line 159  public:
         /// simple hash code of string. used by Hash          /// simple hash code of string. used by Hash
         uint hash_code() const;          uint hash_code() const;
   
           /// extracts [start, finish) piece of string
           String& piece(size_t start, size_t finish) const;
   
           /// @return position of substr in string, -1 means "not found"
           size_t pos(const String& substr) const;
   
 #ifndef NO_STRING_ORIGIN  #ifndef NO_STRING_ORIGIN
         /// origin of string. calculated by first row          /// origin of string. calculated by first row
         const Origin& origin() const;          const Origin& origin() const;

Removed from v.1.52  
changed lines
  Added in v.1.55


E-mail: