|
|
| version 1.281, 2024/11/13 00:09:52 | version 1.282, 2025/05/25 17:44:27 |
|---|---|
| Line 233 public: | Line 233 public: |
| *this+=new String("match"); | *this+=new String("match"); |
| *this+=new String("postmatch"); | *this+=new String("postmatch"); |
| for(int i=0; i<MAX_MATCH_GROUPS; i++) { | for(int i=0; i<MAX_MATCH_GROUPS; i++) { |
| *this+=new String(pa_uitoa(1+i), String::L_CLEAN); | *this+=new String(String::Body::uitoa(1+i), String::L_CLEAN); |
| } | } |
| } | } |
| }; | }; |
| Line 247 static Table &string_match_table_templat | Line 247 static Table &string_match_table_templat |
| // String::Body methods | // String::Body methods |
| String::Body String::Body::uitoa(size_t aindex) { | |
| static const size_t CACHE_SIZE=256; | |
| static String::Body cache[CACHE_SIZE]; | |
| if (aindex < CACHE_SIZE) | |
| return !cache[aindex] ? (cache[aindex]=Body(pa_uitoa(aindex))) : cache[aindex]; | |
| else | |
| return Body(pa_uitoa(aindex)); | |
| } | |
| String::Body String::Body::trim(String::Trim_kind kind, const char* chars, size_t* out_start, size_t* out_length, Charset* source_charset) const { | String::Body String::Body::trim(String::Trim_kind kind, const char* chars, size_t* out_start, size_t* out_length, Charset* source_charset) const { |
| size_t our_length=length(); | size_t our_length=length(); |
| if(!our_length) | if(!our_length) |