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