|
|
| version 1.111, 2001/10/29 15:15:11 | version 1.112, 2001/10/29 16:29:07 |
|---|---|
| Line 195 public: | Line 195 public: |
| /// @return position of substr in string, -1 means "not found" [String version] | /// @return position of substr in string, -1 means "not found" [String version] |
| int pos(const String& substr, | int pos(const String& substr, |
| size_t this_offset=0, Untaint_lang lang=UL_UNSPECIFIED) const; | int this_offset=0, Untaint_lang lang=UL_UNSPECIFIED) const; |
| /// @return position of substr in string, -1 means "not found" [const char* version] | /// @return position of substr in string, -1 means "not found" [const char* version] |
| int pos(const char *substr, size_t substr_size=0, | int pos(const char *substr, size_t substr_size=0, |
| size_t this_offset=0, Untaint_lang lang=UL_UNSPECIFIED) const; | int this_offset=0, Untaint_lang lang=UL_UNSPECIFIED) const; |
| void split(Array& result, | void split(Array& result, |
| size_t *pos_after_ref, | size_t *pos_after_ref, |
| Line 244 private: | Line 244 private: |
| /// several String fragments | /// several String fragments |
| struct Chunk { | struct Chunk { |
| size_t count; ///< the number of rows in chunk | uint count; ///< the number of rows in chunk |
| /// string fragment or a link to next chunk union | /// string fragment or a link to next chunk union |
| union Row { | union Row { |
| /// fragment | /// fragment |
| Line 296 private: | Line 296 private: |
| String& reconstruct(Pool& pool) const; | String& reconstruct(Pool& pool) const; |
| void join_chain(Pool& pool, | void join_chain(Pool& pool, |
| size_t& ai, const Chunk*& achunk, const Chunk::Row*& arow, | uint& ai, const Chunk*& achunk, const Chunk::Row*& arow, |
| Untaint_lang& joined_lang, const char *& joined_ptr, size_t& joined_size) const; | Untaint_lang& joined_lang, const char *& joined_ptr, size_t& joined_size) const; |
| String& replace_in_reconstructed(Pool& pool, Dictionary& dict) const; | String& replace_in_reconstructed(Pool& pool, Dictionary& dict) const; |