Diff for /parser3/src/include/pa_string.h between versions 1.140 and 1.142

version 1.140, 2002/08/01 11:26:48 version 1.142, 2002/08/08 08:43:38
Line 8 Line 8
 #ifndef PA_STRING_H  #ifndef PA_STRING_H
 #define PA_STRING_H  #define PA_STRING_H
   
 static const char* IDENT_STRING_H="$Id$";  static const char* IDENT_STRING_H="$Date$";
   
 #include "pa_pool.h"  #include "pa_pool.h"
 #include "pa_types.h"  #include "pa_types.h"
Line 178  public: Line 178  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 first char of a string          /// extracts first char of a string, if any
         char first_char() const;          char first_char() const {
                   return is_empty()?*head.chunk.rows[0].item.ptr:0;
           }
   
         /// extracts [start, finish) piece of string          /// extracts [start, finish) piece of string
         String& mid(size_t start, size_t finish) const;          String& mid(size_t start, size_t finish) const;

Removed from v.1.140  
changed lines
  Added in v.1.142


E-mail: