Diff for /parser3/src/include/pa_string.h between versions 1.154 and 1.155

version 1.154, 2003/12/17 07:34:11 version 1.155, 2004/01/30 09:56:49
Line 36  class Request_charsets; Line 36  class Request_charsets;
 class String;  class String;
 typedef Array<const String*> ArrayString;  typedef Array<const String*> ArrayString;
   
   // generally useful
   
   int pa_atoi(const char* str, const String* problem_source=0);
   double pa_atod(const char* str, const String* problem_source=0);
   
 /// this is result of pos functions which mean that substr were not found  /// this is result of pos functions which mean that substr were not found
 #define STRING_NOT_FOUND ((size_t)-1)  #define STRING_NOT_FOUND ((size_t)-1)
   
Line 476  public: Line 481  public:
         String& change_case(Charset& source_charset,          String& change_case(Charset& source_charset,
                 Change_case_kind kind) const;                  Change_case_kind kind) const;
         const String& replace(const Dictionary& dict) const;          const String& replace(const Dictionary& dict) const;
         double as_double() const;          double as_double() const { return pa_atod(cstr(), this); }
         int as_int() const;          int as_int() const { return pa_atoi(cstr(), this); }
   
 private: //disabled  private: //disabled
   

Removed from v.1.154  
changed lines
  Added in v.1.155


E-mail: