#include <String_Base.h>
Inheritance diagram for ACE_String_Base< CHAR >:
Public Member Functions | |
ACE_String_Base (ACE_Allocator *the_allocator=0) | |
ACE_String_Base (const CHAR *s, ACE_Allocator *the_allocator=0, int release=1) | |
ACE_String_Base (const CHAR *s, size_t len, ACE_Allocator *the_allocator=0, int release=1) | |
ACE_String_Base (const ACE_String_Base< CHAR > &s) | |
ACE_String_Base (CHAR c, ACE_Allocator *the_allocator=0) | |
ACE_String_Base (size_t len, CHAR c=0, ACE_Allocator *the_allocator=0) | |
~ACE_String_Base (void) | |
const CHAR & | operator[] (size_t slot) const |
CHAR & | operator[] (size_t slot) |
ACE_String_Base< CHAR > & | operator= (const CHAR *s) |
ACE_String_Base< CHAR > & | operator= (const ACE_String_Base< CHAR > &s) |
ACE_String_Base< CHAR > & | assign_nocopy (const ACE_String_Base< CHAR > &s) |
void | set (const CHAR *s, int release=1) |
void | set (const CHAR *s, size_t len, int release) |
void | clear (int release=0) |
void | fast_clear (void) |
ACE_String_Base< CHAR > | substring (size_t offset, ssize_t length=-1) const |
ACE_String_Base< CHAR > | substr (size_t offset, ssize_t length=-1) const |
ACE_String_Base< CHAR > & | operator+= (const ACE_String_Base< CHAR > &s) |
ACE_String_Base< CHAR > & | operator+= (const CHAR *s) |
ACE_String_Base< CHAR > & | operator+= (const CHAR c) |
ACE_String_Base< CHAR > & | append (const CHAR *s, size_t slen) |
u_long | hash (void) const |
size_t | length (void) const |
bool | is_empty (void) const |
bool | empty (void) const |
CHAR * | rep (void) const |
const CHAR * | fast_rep (void) const |
const CHAR * | c_str (void) const |
ssize_t | strstr (const ACE_String_Base< CHAR > &s) const |
ssize_t | find (const ACE_String_Base< CHAR > &str, size_t pos=0) const |
ssize_t | find (const CHAR *s, size_t pos=0) const |
ssize_t | find (CHAR c, size_t pos=0) const |
ssize_t | rfind (CHAR c, ssize_t pos=npos) const |
bool | operator== (const ACE_String_Base< CHAR > &s) const |
bool | operator== (const CHAR *s) const |
bool | operator< (const ACE_String_Base< CHAR > &s) const |
bool | operator> (const ACE_String_Base< CHAR > &s) const |
bool | operator!= (const ACE_String_Base< CHAR > &s) const |
bool | operator!= (const CHAR *s) const |
int | compare (const ACE_String_Base< CHAR > &s) const |
void | dump (void) const |
void | resize (size_t len, CHAR c=0) |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Protected Attributes | |
ACE_Allocator * | allocator_ |
size_t | len_ |
size_t | buf_len_ |
CHAR * | rep_ |
int | release_ |
Static Protected Attributes | |
CHAR | NULL_String_ = 0 |
This class uses an ACE_Allocator to allocate memory. The user can make this a persistant class by providing an ACE_Allocator with a persistable memory pool. This class is optimized for efficiency, so it doesn't provide any internal locking.
Definition at line 49 of file String_Base.h.
|
Default constructor.
Definition at line 26 of file String_Base.cpp. References ACE_TRACE.
00027 : allocator_ (the_allocator ? the_allocator : ACE_Allocator::instance ()), 00028 len_ (0), 00029 buf_len_ (0), 00030 rep_ (&ACE_String_Base<CHAR>::NULL_String_), 00031 release_ (0) 00032 { 00033 ACE_TRACE ("ACE_String_Base<CHAR>::ACE_String_Base"); 00034 } |
|
Constructor that copies s into dynamically allocated memory. if release == 1 then a new buffer is allocated internally, and s is copied to the internal buffer. if release == 0 then the s buffer is used directly. If s == 0 then it will _not_ be used, and instead the internal buffer is set to NULL_String_.
Definition at line 39 of file String_Base.cpp. References ACE_TRACE, and ACE_String_Base< CHAR >::set().
|
|
Constructor that copies len CHARs of s into dynamically allocated memory (will zero terminate the result). if release == 1 then a new buffer is allocated internally. s is copied to the internal buffer. if release == 0 then the s buffer is used directly. If s == 0 then it will _not_ be used, and instead the internal buffer is set to NULL_String_.
Definition at line 69 of file String_Base.cpp. References ACE_TRACE, and ACE_String_Base< CHAR >::set().
|
|
Copy constructor.
Definition at line 87 of file String_Base.cpp. References ACE_TRACE, ACE_String_Base< CHAR >::len_, ACE_String_Base< CHAR >::rep_, and ACE_String_Base< CHAR >::set().
00088 : allocator_ (s.allocator_ ? s.allocator_ : ACE_Allocator::instance ()), 00089 len_ (0), 00090 buf_len_ (0), 00091 rep_ (0), 00092 release_ (0) 00093 { 00094 ACE_TRACE ("ACE_String_Base<CHAR>::ACE_String_Base"); 00095 00096 this->set (s.rep_, s.len_, 1); 00097 } |
|
Constructor that copies c into dynamically allocated memory.
Definition at line 53 of file String_Base.cpp. References ACE_TRACE, and ACE_String_Base< CHAR >::set().
|
|
Constructor that allocates a len long string. Warning : This constructor was incorrectly documented in the past. It simply calls resize(len, c). It is probably not advisable to use the second parameter. See resize() for more information.
Definition at line 100 of file String_Base.cpp. References ACE_TRACE, and ACE_String_Base< CHAR >::resize().
|
|
Deletes the memory... Definition at line 113 of file String_Base.cpp. References ACE_TRACE, ACE_String_Base< CHAR >::buf_len_, ACE_Allocator::free(), and ACE_String_Base< CHAR >::release_.
00114 { 00115 ACE_TRACE ("ACE_String_Base<CHAR>::~ACE_String_Base"); 00116 00117 if (this->buf_len_ != 0 && this->release_ != 0) 00118 this->allocator_->free (this->rep_); 00119 } |
|
Append function (copies memory).
Definition at line 203 of file String_Base.cpp. References ACE_ALLOCATOR_RETURN, ace_max(), ACE_TRACE, ACE_String_Base< CHAR >::buf_len_, ACE_Allocator::free(), ACE_OS::memcpy(), and ACE_String_Base< CHAR >::release_. Referenced by operator+(), and ACE_String_Base< CHAR >::operator+=().
00204 { 00205 ACE_TRACE ("ACE_String_Base<CHAR>::append(const CHAR*, size_t)"); 00206 if (slen > 0) 00207 { 00208 // case 1. No memory allocation needed. 00209 if (this->buf_len_ >= this->len_ + slen + 1) 00210 { 00211 // Copy in data from new string. 00212 ACE_OS::memcpy (this->rep_ + this->len_, s, slen * sizeof (CHAR)); 00213 } 00214 else // case 2. Memory reallocation is needed 00215 { 00216 const size_t new_buf_len = 00217 ace_max(this->len_ + slen + 1, this->buf_len_ + this->buf_len_ / 2); 00218 00219 CHAR *t = 0; 00220 00221 ACE_ALLOCATOR_RETURN (t, 00222 (CHAR *) this->allocator_->malloc (new_buf_len * sizeof (CHAR)), *this); 00223 00224 // Copy memory from old string into new string. 00225 ACE_OS::memcpy (t, this->rep_, this->len_ * sizeof (CHAR)); 00226 00227 ACE_OS::memcpy (t + this->len_, s, slen * sizeof (CHAR)); 00228 00229 if (this->buf_len_ != 0 && this->release_ != 0) 00230 this->allocator_->free (this->rep_); 00231 00232 this->release_ = 1; 00233 this->rep_ = t; 00234 this->buf_len_ = new_buf_len; 00235 } 00236 00237 this->len_ += slen; 00238 this->rep_[this->len_] = 0; 00239 } 00240 00241 return *this; 00242 } |
|
Assignment alternative method (does not copy memory).
Definition at line 22 of file String_Base.inl. References ACE_TRACE, ACE_String_Base< CHAR >::len_, ACE_String_Base< CHAR >::rep_, and ACE_String_Base< CHAR >::set(). Referenced by ACE_Configuration_Heap::load_key().
|
|
|
Clear this string. Memory is _not_ freed if is 0. Warning: This method was incorrectly documented in the past, but the current implementation has been changed to match the documented behavior. Warning: clear(0) behaves like fast_clear() below.
Definition at line 274 of file String_Base.cpp. References ACE_String_Base< CHAR >::buf_len_, ACE_String_Base< CHAR >::fast_clear(), ACE_Allocator::free(), and ACE_String_Base< CHAR >::release_.
00275 { 00276 // This can't use set(), because that would free memory if release=0 00277 if (release != 0) 00278 { 00279 if (this->buf_len_ != 0 && this->release_ != 0) 00280 this->allocator_->free (this->rep_); 00281 00282 this->rep_ = &ACE_String_Base<CHAR>::NULL_String_; 00283 this->len_ = 0; 00284 this->buf_len_ = 0; 00285 this->release_ = 0; 00286 } 00287 else 00288 { 00289 this->fast_clear (); 00290 } 00291 } |
|
Performs a strncmp comparison.
Definition at line 361 of file String_Base.cpp. References ace_min(), ACE_TRACE, ACE_String_Base< CHAR >::len_, ACE_OS::memcmp(), and ACE_String_Base< CHAR >::rep_. Referenced by ACE_String_Base< CHAR >::operator<(), and ACE_String_Base< CHAR >::operator>().
00362 { 00363 ACE_TRACE ("ACE_String_Base<CHAR>::compare"); 00364 00365 if (this->rep_ == s.rep_) 00366 return 0; 00367 00368 // Pick smaller of the two lengths and perform the comparison. 00369 size_t smaller_length = ace_min (this->len_, s.len_); 00370 00371 int result = ACE_OS::memcmp (this->rep_, 00372 s.rep_, 00373 smaller_length * sizeof (CHAR)); 00374 00375 if (!result) 00376 result = static_cast<int> (this->len_ - s.len_); 00377 return result; 00378 } |
|
Dump the state of an object. Definition at line 13 of file String_Base.inl. References ACE_TRACE.
00014 { 00015 #if defined (ACE_HAS_DUMP) 00016 ACE_TRACE ("ACE_String_Base<CHAR>::dump"); 00017 #endif /* ACE_HAS_DUMP */ 00018 } |
|
Return Definition at line 43 of file String_Base.inl. References ACE_String_Base< CHAR >::is_empty().
00044 { 00045 return this->is_empty (); 00046 } |
|
A more specialized version of clear(): "fast clear". fast_clear() resets the string to 0 length. If the string owns the buffer (
Definition at line 329 of file String_Base.cpp. References ACE_String_Base< CHAR >::buf_len_, and ACE_String_Base< CHAR >::release_. Referenced by ACE_String_Base< CHAR >::clear().
00330 { 00331 this->len_ = 0; 00332 if (this->release_ != 0) 00333 { 00334 // String retains the original buffer. 00335 if (this->rep_ != &ACE_String_Base<CHAR>::NULL_String_) 00336 this->rep_[0] = 0; 00337 } 00338 else 00339 { 00340 // External buffer: string relinquishes control of it. 00341 this->buf_len_ = 0; 00342 this->rep_ = &ACE_String_Base<CHAR>::NULL_String_; 00343 } 00344 } |
|
|
Find c starting at pos. Returns the slot of the first location that matches (will be >= pos), else npos.
Definition at line 414 of file String_Base.cpp. References ACE_OS::strnchr().
00415 { 00416 CHAR *substr = this->rep_ + pos; 00417 CHAR *pointer = ACE_OS::strnchr (substr, c, this->len_ - pos); 00418 if (pointer == 0) 00419 return ACE_String_Base<CHAR>::npos; 00420 else 00421 return pointer - this->rep_; 00422 } |
|
Find s starting at pos. Returns the slot of the first location that matches (will be >= pos), else npos.
Definition at line 402 of file String_Base.cpp. References ACE_OS::strlen(), and ACE_OS::strnstr().
00403 { 00404 CHAR *substr = this->rep_ + pos; 00405 size_t len = ACE_OS::strlen (s); 00406 CHAR *pointer = ACE_OS::strnstr (substr, s, len); 00407 if (pointer == 0) 00408 return ACE_String_Base<CHAR>::npos; 00409 else 00410 return pointer - this->rep_; 00411 } |
|
Find starting at pos. Returns the slot of the first location that matches (will be >= pos), else npos.
Definition at line 121 of file String_Base.inl. References ACE_TRACE, and ACE_String_Base< CHAR >::rep_. Referenced by ACE_Get_Opt::long_option_i(), ACE_Registry::make_name(), ACE_String_Base< CHAR >::strstr(), and ACE_Utils::UUID::UUID().
|
|
Returns a hash value for this string.
Definition at line 245 of file String_Base.cpp. References ACE::hash_pjw(). Referenced by ACE_Configuration_ExtId::hash(), and ACE_Hash< ACE_CString >::operator()().
00246 { 00247 return 00248 ACE::hash_pjw (reinterpret_cast<char *> ( 00249 const_cast<CHAR *> (this->rep_)), 00250 this->len_ * sizeof (CHAR)); 00251 } |
|
Return Definition at line 37 of file String_Base.inl. Referenced by ACE_String_Base< CHAR >::empty().
00038 { 00039 return this->len_ == 0; 00040 } |
|
|
Inequality comparison operator.
Definition at line 115 of file String_Base.inl.
00116 { 00117 return !(*this == s); 00118 } |
|
Inequality comparison operator.
Definition at line 108 of file String_Base.inl. References ACE_TRACE.
00109 { 00110 ACE_TRACE ("ACE_String_Base<CHAR>::operator!="); 00111 return !(*this == s); 00112 } |
|
Concat operator (copies memory).
Definition at line 509 of file String_Base.cpp. References ACE_TRACE, and ACE_String_Base< CHAR >::append().
|
|
Concat operator (copies memory).
Definition at line 493 of file String_Base.cpp. References ACE_String_Base< CHAR >::append(), and ACE_OS::strlen().
00494 { 00495 size_t slen = 0; 00496 if (s != 0) 00497 slen = ACE_OS::strlen (s); 00498 return this->append (s, slen); 00499 } |
|
Concat operator (copies memory).
Definition at line 502 of file String_Base.cpp. References ACE_TRACE, ACE_String_Base< CHAR >::append(), ACE_String_Base< CHAR >::len_, and ACE_String_Base< CHAR >::rep_.
|
|
Less than comparison operator.
Definition at line 89 of file String_Base.inl. References ACE_TRACE, and ACE_String_Base< CHAR >::compare().
|
|
Assignment operator (does copy memory).
Definition at line 305 of file String_Base.cpp. References ACE_TRACE, ACE_String_Base< CHAR >::len_, ACE_String_Base< CHAR >::rep_, and ACE_String_Base< CHAR >::set().
|
|
Assignment operator (does copy memory).
Definition at line 295 of file String_Base.cpp. References ACE_TRACE, and ACE_String_Base< CHAR >::set().
|
|
Equality comparison operator (must match entire string).
Definition at line 392 of file String_Base.cpp. References ACE_OS::memcmp(), and ACE_OS::strlen().
00393 { 00394 size_t len = ACE_OS::strlen (s); 00395 return this->len_ == len && 00396 ACE_OS::memcmp (this->rep_, 00397 s, 00398 len * sizeof (CHAR)) == 0; 00399 } |
|
Equality comparison operator (must match entire string).
Definition at line 383 of file String_Base.cpp. References ACE_String_Base< CHAR >::len_, ACE_OS::memcmp(), and ACE_String_Base< CHAR >::rep_.
00384 { 00385 return this->len_ == s.len_ && 00386 ACE_OS::memcmp (this->rep_, 00387 s.rep_, 00388 this->len_ * sizeof (CHAR)) == 0; 00389 } |
|
Greater than comparison operator.
Definition at line 98 of file String_Base.inl. References ACE_TRACE, and ACE_String_Base< CHAR >::compare().
|
|
Return the <slot'th> character by reference in the string (doesn't perform bounds checking).
Definition at line 68 of file String_Base.inl. References ACE_TRACE.
|
|
Return the <slot'th> character in the string (doesn't perform bounds checking).
Definition at line 59 of file String_Base.inl. References ACE_TRACE.
|
|
Get a copy of the underlying representation. This method allocates memory for a copy of the string and returns a pointer to the new area. The caller is responsible for freeing the memory when finished; use delete []
Definition at line 349 of file String_Base.cpp. References ACE_NEW_RETURN, ACE_TRACE, and ACE_OS::strsncpy(). Referenced by ACE_Remote_Name_Space::bind(), ACE_Configuration::expand_path(), ACE_Remote_Name_Space::list_name_entries(), ACE_Remote_Name_Space::list_names(), ACE_Remote_Name_Space::list_type_entries(), ACE_Remote_Name_Space::list_types(), ACE_Remote_Name_Space::list_value_entries(), ACE_Remote_Name_Space::list_values(), ACE_Remote_Name_Space::rebind(), ACE_Remote_Name_Space::resolve(), ACE_Local_Name_Space<, ACE_LOCK >::shared_bind_i(), and ACE_Remote_Name_Space::unbind().
00350 { 00351 ACE_TRACE ("ACE_String_Base<CHAR>::rep"); 00352 00353 CHAR *new_string; 00354 ACE_NEW_RETURN (new_string, CHAR[this->len_ + 1], 0); 00355 ACE_OS::strsncpy (new_string, this->rep_, this->len_+1); 00356 00357 return new_string; 00358 } |
|
This method is designed for high-performance. Please use with care ;-) Warning : This method was documented incorrectly in the past. The original intention was to change the length of the string to len, and to fill the whole thing with c CHARs. However, what was actually done was to set the length of the string to zero, and fill the buffer with c's. The buffer was also not null-terminated unless c happened to be zero. Rather than fix the method to work as documented, the code is left as is, but the second parameter should probably not be used.
Definition at line 254 of file String_Base.cpp. References ACE_TRACE, ACE_String_Base< CHAR >::buf_len_, ACE_Allocator::free(), ACE_Allocator::malloc(), ACE_OS::memset(), and ACE_String_Base< CHAR >::release_. Referenced by ACE_String_Base< CHAR >::ACE_String_Base(), and ACE_Registry_Name_Space::resolve().
00255 { 00256 ACE_TRACE ("ACE_String_Base<CHAR>::resize"); 00257 00258 // Only reallocate if we don't have enough space... 00259 if (this->buf_len_ <= len) 00260 { 00261 if (this->buf_len_ != 0 && this->release_ != 0) 00262 this->allocator_->free (this->rep_); 00263 00264 this->rep_ = static_cast<CHAR*>( 00265 this->allocator_->malloc ((len + 1) * sizeof (CHAR))); 00266 this->buf_len_ = len + 1; 00267 this->release_ = 1; 00268 } 00269 this->len_ = 0; 00270 ACE_OS::memset (this->rep_, c, this->buf_len_ * sizeof (CHAR)); 00271 } |
|
Find c starting at pos (counting from the end). Returns the slot of the first location that matches, else npos.
Definition at line 425 of file String_Base.cpp. References ssize_t. Referenced by ACE_DLL_Handle::get_dll_names().
|
|
Copy len bytes of s (will zero terminate the result). If release == 1 then a new buffer is allocated internally if the existing one is not big enough to hold s. If the existing buffer is big enough, then it will be used. This means that set(*, *, 1) is illegal when the string is constructed with a non-owned const char*. (e.g. ACE_String_Base("test", 0, 0)) If release == 0 then the s buffer is used directly, and any existing buffer is destroyed. If s == 0 then it will _not_ be used, and instead the internal buffer is set to NULL_String_.
Definition at line 123 of file String_Base.cpp. References ACE_ALLOCATOR, ACE_String_Base< CHAR >::buf_len_, ACE_Allocator::free(), ACE_OS::memcpy(), and ACE_String_Base< CHAR >::release_.
00124 { 00125 // Case 1. Going from memory to more memory 00126 size_t new_buf_len = len + 1; 00127 if (s != 0 && len != 0 && release && this->buf_len_ < new_buf_len) 00128 { 00129 CHAR *temp; 00130 ACE_ALLOCATOR (temp, 00131 (CHAR *) this->allocator_->malloc (new_buf_len * sizeof (CHAR))); 00132 00133 if (this->buf_len_ != 0 && this->release_ != 0) 00134 this->allocator_->free (this->rep_); 00135 00136 this->rep_ = temp; 00137 this->buf_len_ = new_buf_len; 00138 this->release_ = 1; 00139 this->len_ = len; 00140 ACE_OS::memcpy (this->rep_, s, len * sizeof (CHAR)); 00141 this->rep_[len] = 0; 00142 } 00143 else // Case 2. No memory allocation is necessary. 00144 { 00145 // Free memory if necessary and figure out future ownership 00146 if (release == 0 || s == 0 || len == 0) 00147 { 00148 if (this->buf_len_ != 0 && this->release_ != 0) 00149 { 00150 this->allocator_->free (this->rep_); 00151 this->release_ = 0; 00152 } 00153 } 00154 // Populate data. 00155 if (s == 0 || len == 0) 00156 { 00157 this->buf_len_ = 0; 00158 this->len_ = 0; 00159 this->rep_ = &ACE_String_Base<CHAR>::NULL_String_; 00160 this->release_ = 0; 00161 } 00162 else if (release == 0) // Note: No guarantee that rep_ is null terminated. 00163 { 00164 this->buf_len_ = len; 00165 this->len_ = len; 00166 this->rep_ = const_cast <CHAR *> (s); 00167 this->release_ = 0; 00168 } 00169 else 00170 { 00171 ACE_OS::memcpy (this->rep_, s, len * sizeof (CHAR)); 00172 this->rep_[len] = 0; 00173 this->len_ = len; 00174 } 00175 } 00176 } |
|
Copy s into this ACE_String_Base. If release == 1 then a new buffer is allocated internally if the existing one is not big enough to hold s. If the existing buffer is big enough, then it will be used. This means that set(*, 1) can be illegal when the string is constructed with a const char*. (e.g. ACE_String_Base("test", 0, 0)). if release == 0 then the s buffer is used directly, and any existing buffer is destroyed. If s == 0 then it will _not_ be used, and instead the internal buffer is set to NULL_String_.
Definition at line 319 of file String_Base.cpp. References ACE_OS::strlen(). Referenced by ACE_String_Base< CHAR >::ACE_String_Base(), ACE_String_Base< CHAR >::assign_nocopy(), ACE_Capabilities::getline(), ACE_String_Base< CHAR >::operator=(), ACE_Codeset_Registry::registry_to_locale(), and ACE_Codeset_Registry::registry_to_locale_i().
00320 { 00321 size_t length = 0; 00322 if (s != 0) 00323 length = ACE_OS::strlen (s); 00324 00325 this->set (s, length, release); 00326 } |
|
Comparison operator that will match substrings. Returns the slot of the first location that matches, else -1.
Definition at line 128 of file String_Base.inl. References ACE_TRACE, ACE_String_Base< CHAR >::find(), and ACE_String_Base< CHAR >::rep_. Referenced by ACE_DLL_Handle::open().
|
|
Same as .
Definition at line 49 of file String_Base.inl. References ACE_TRACE, ssize_t, and ACE_String_Base< CHAR >::substring(). Referenced by ACE_DLL_Handle::get_dll_names(), ACE_Registry::make_name(), and ACE_Utils::UUID::UUID().
|
|
Return a substring given an offset and length, if length == -1 use rest of str. Return empty substring if offset or offset/length are invalid.
Definition at line 180 of file String_Base.cpp. References ssize_t. Referenced by ACE::get_ip_interfaces(), and ACE_String_Base< CHAR >::substr().
00181 { 00182 ACE_String_Base<CHAR> nill; 00183 size_t count = length; 00184 00185 // case 1. empty string 00186 if (this->len_ == 0) 00187 return nill; 00188 00189 // case 2. start pos past our end 00190 if (offset >= this->len_) 00191 return nill; 00192 // No length == empty string. 00193 else if (length == 0) 00194 return nill; 00195 // Get all remaining bytes. 00196 else if (length == -1 || count > (this->len_ - offset)) 00197 count = this->len_ - offset; 00198 00199 return ACE_String_Base<CHAR> (&this->rep_[offset], count, this->allocator_); 00200 } |
|
Declare the dynamic allocation hooks. Definition at line 499 of file String_Base.h. |
|
Pointer to a memory allocator. Definition at line 505 of file String_Base.h. |
|
Length of the ACE_String_Base data buffer. Keeping track of the length allows to avoid unnecessary dynamic allocations. Definition at line 516 of file String_Base.h. Referenced by ACE_String_Base< CHAR >::append(), ACE_String_Base< CHAR >::clear(), ACE_String_Base< CHAR >::fast_clear(), ACE_String_Base< CHAR >::resize(), ACE_String_Base< CHAR >::set(), and ACE_String_Base< CHAR >::~ACE_String_Base(). |
|
Length of the ACE_String_Base data (not counting the trailing ''). Definition at line 510 of file String_Base.h. Referenced by ACE_String_Base< CHAR >::ACE_String_Base(), ACE_String_Base< CHAR >::assign_nocopy(), ACE_String_Base< CHAR >::compare(), ACE_String_Base< CHAR >::operator+=(), ACE_String_Base< CHAR >::operator=(), and ACE_String_Base< CHAR >::operator==(). |
|
Represents the "NULL" string to simplify the internal logic. Definition at line 21 of file String_Base.cpp. |
|
Flag that indicates if we own the memory Definition at line 526 of file String_Base.h. Referenced by ACE_String_Base< CHAR >::append(), ACE_String_Base< CHAR >::clear(), ACE_String_Base< CHAR >::fast_clear(), ACE_String_Base< CHAR >::resize(), ACE_String_Base< CHAR >::set(), and ACE_String_Base< CHAR >::~ACE_String_Base(). |
|
Pointer to data. Definition at line 521 of file String_Base.h. Referenced by ACE_String_Base< CHAR >::ACE_String_Base(), ACE_String_Base< CHAR >::assign_nocopy(), ACE_String_Base< CHAR >::compare(), ACE_String_Base< CHAR >::find(), ACE_String_Base< CHAR >::operator+=(), ACE_String_Base< CHAR >::operator=(), ACE_String_Base< CHAR >::operator==(), and ACE_String_Base< CHAR >::strstr(). |