Diff for /parser3/src/include/pa_string.h between versions 1.65 and 1.69

version 1.65, 2001/04/03 14:39:02 version 1.69, 2001/04/03 17:01:02
Line 111  public: Line 111  public:
         String(Pool& apool, const char *src=0, bool tainted=false);          String(Pool& apool, const char *src=0, bool tainted=false);
         String(const String& src);          String(const String& src);
         size_t size() const { return fsize; }          size_t size() const { return fsize; }
         /// convert to C string          /// convert to C string. if 'lang' known, forcing 'lang' to it
         char *cstr() const {          char *cstr(Untaint_lang lang=UL_UNKNOWN) const {
                 char *result=(char *)malloc(size()*UNTAINT_TIMES_BIGGER+1);                  char *result=(char *)malloc(size()*UNTAINT_TIMES_BIGGER+1);
                 char *eol=store_to(result);                  char *eol=store_to(result, lang);
                 *eol=0;                  *eol=0;
                 return result;                  return result;
         }          }
Line 184  public: Line 184  public:
                 const String& delim,                   const String& delim, 
                 Untaint_lang lang, int limit=-1) const;                  Untaint_lang lang, int limit=-1) const;
   
           typedef void (*Row_action)(Table& table, Array *row, int start, int finish, 
                   void *info);
         bool match(const String *aorigin,          bool match(const String *aorigin,
                 const String& regexp,                   const String& regexp, 
                 const String *options,                  const String *options,
                 Table **table) const;                  Table **table,
                   Row_action row_action, void *info) const;
   
 #ifndef NO_STRING_ORIGIN  #ifndef NO_STRING_ORIGIN
         /// origin of string. calculated by first row          /// origin of string. calculated by first row
Line 239  private: Line 242  private:
                 return append_here == link_row;                  return append_here == link_row;
         }          }
         void expand();          void expand();
         char *String::store_to(char *dest) const;          char *String::store_to(char *dest, Untaint_lang lang=UL_UNKNOWN) const;
   
 private: //disabled  private: //disabled
   

Removed from v.1.65  
changed lines
  Added in v.1.69


E-mail: