Diff for /parser3/src/include/pa_string.h between versions 1.236 and 1.239

version 1.236, 2025/05/25 17:44:27 version 1.239, 2026/01/06 13:27:59
Line 12 Line 12
   
 // includes  // includes
 #include "pa_types.h"  #include "pa_types.h"
   #include "pa_int.h"
 #include "pa_array.h"  #include "pa_array.h"
   
 extern "C" { // cord's author forgot to do that  extern "C" { // cord's author forgot to do that
Line 71  public: Line 72  public:
   
 // generally useful  // generally useful
   
 double pa_atod(const char* str, const String* problem_source);  
 int pa_atoi(const char* str, int base=10, const String* problem_source=0);  
 unsigned int pa_atoui(const char *str, int base=10, const String* problem_source=0);  
 uint64_t pa_atoul(const char *str, int base=10, 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 378  public: Line 374  public:
                 void dump() const;                  void dump() const;
   
                 Body(): body(CORD_EMPTY) INIT_HASH_CODE(0) INIT_LENGTH(0) {}                  Body(): body(CORD_EMPTY) INIT_HASH_CODE(0) INIT_LENGTH(0) {}
                 Body(const char *abody): body(AS_CORD(abody)) INIT_HASH_CODE(0) INIT_LENGTH(0) {}                  explicit Body(const char *abody): body(AS_CORD(abody)) INIT_HASH_CODE(0) INIT_LENGTH(0) {}
                 Body(CORD abody, uint ahash_code): body(abody) INIT_HASH_CODE(ahash_code) INIT_LENGTH(0) {}                  explicit Body(CORD abody, uint ahash_code): body(abody) INIT_HASH_CODE(ahash_code) INIT_LENGTH(0) {}
                 explicit Body(C ac): body(AS_CORD(ac.str)) INIT_HASH_CODE(0) INIT_LENGTH(ac.length) {}                  explicit Body(C ac): body(AS_CORD(ac.str)) INIT_HASH_CODE(0) INIT_LENGTH(ac.length) {}
                 explicit Body(CORD abody): body(abody) INIT_HASH_CODE(0) INIT_LENGTH(0) {                  explicit Body(CORD abody): body(abody) INIT_HASH_CODE(0) INIT_LENGTH(0) {
 #ifdef CORD_CAT_OPTIMIZATION  #ifdef CORD_CAT_OPTIMIZATION

Removed from v.1.236  
changed lines
  Added in v.1.239


E-mail: