| 394 | } |
| 395 | |
| 396 | const UTF8* StringBuffer::getPtr8() const |
| 397 | { |
| 398 | incRequestCount8(); |
| 399 | // get a pointer to the utf8 version of the StringBuffer's data store. |
| 400 | // if the utf8 version is dirty, update it first. |
| 401 | if(mDirty8) |
| 402 | // force const cheating. |
| 403 | const_cast<StringBuffer*>(this)->updateBuffer8(); |
| 404 | return mBuffer8.address(); |
| 405 | } |
| 406 | |
| 407 | void StringBuffer::updateBuffer8() |
| 408 | { |
no test coverage detected