tesseract v5.3.3.20231005
|
#include <unicodetext.h>
Classes | |
class | const_iterator |
class | const_reverse_iterator |
Public Types | |
typedef char32 | value_type |
Public Member Functions | |
UnicodeText () | |
UnicodeText (const UnicodeText &src) | |
UnicodeText (const const_iterator &first, const const_iterator &last) | |
UnicodeText & | operator= (const UnicodeText &src) |
UnicodeText & | Copy (const UnicodeText &src) |
UnicodeText & | assign (const UnicodeText &src) |
UnicodeText & | PointTo (const UnicodeText &src) |
UnicodeText & | PointTo (const const_iterator &first, const const_iterator &last) |
~UnicodeText () | |
void | clear () |
bool | empty () const |
void | push_back (char32 codepoint) |
template<typename ForwardIterator > | |
UnicodeText & | append (ForwardIterator first, const ForwardIterator last) |
UnicodeText & | append (const const_iterator &first, const const_iterator &last) |
UnicodeText & | append (const UnicodeText &source) |
int | size () const |
const_iterator | begin () const |
const_iterator | end () const |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | rend () const |
const_iterator | find (const UnicodeText &look, const_iterator start_pos) const |
const_iterator | find (const UnicodeText &look) const |
bool | HasReplacementChar () const |
const char * | utf8_data () const |
int | utf8_length () const |
int | utf8_capacity () const |
UnicodeText & | CopyUTF8 (const char *utf8_buffer, int byte_length) |
UnicodeText & | TakeOwnershipOfUTF8 (char *utf8_buffer, int byte_length, int byte_capacity) |
UnicodeText & | PointToUTF8 (const char *utf8_buffer, int byte_length) |
const_iterator | MakeIterator (const char *p) const |
string | DebugString () const |
Static Public Member Functions | |
static string | UTF8Substring (const const_iterator &first, const const_iterator &last) |
Friends | |
class | const_iterator |
class | UnicodeTextUtils |
bool | operator== (const UnicodeText &lhs, const UnicodeText &rhs) |
bool | operator!= (const UnicodeText &lhs, const UnicodeText &rhs) |
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition at line 116 of file unicodetext.h.
typedef char32 UnicodeText::value_type |
Definition at line 120 of file unicodetext.h.
UnicodeText::UnicodeText | ( | ) |
Definition at line 188 of file unicodetext.cc.
UnicodeText::UnicodeText | ( | const UnicodeText & | src | ) |
Definition at line 191 of file unicodetext.cc.
UnicodeText::UnicodeText | ( | const const_iterator & | first, |
const const_iterator & | last | ||
) |
Definition at line 196 of file unicodetext.cc.
UnicodeText::~UnicodeText | ( | ) |
Definition at line 355 of file unicodetext.cc.
UnicodeText & UnicodeText::append | ( | const const_iterator & | first, |
const const_iterator & | last | ||
) |
Definition at line 288 of file unicodetext.cc.
UnicodeText & UnicodeText::append | ( | const UnicodeText & | source | ) |
Definition at line 283 of file unicodetext.cc.
|
inline |
Definition at line 163 of file unicodetext.h.
|
inline |
Definition at line 134 of file unicodetext.h.
UnicodeText::const_iterator UnicodeText::begin | ( | ) | const |
Definition at line 408 of file unicodetext.cc.
void UnicodeText::clear | ( | ) |
Definition at line 350 of file unicodetext.cc.
UnicodeText & UnicodeText::Copy | ( | const UnicodeText & | src | ) |
Definition at line 216 of file unicodetext.cc.
UnicodeText & UnicodeText::CopyUTF8 | ( | const char * | utf8_buffer, |
int | byte_length | ||
) |
Definition at line 221 of file unicodetext.cc.
string UnicodeText::DebugString | ( | ) | const |
|
inline |
Definition at line 146 of file unicodetext.h.
UnicodeText::const_iterator UnicodeText::end | ( | ) | const |
Definition at line 412 of file unicodetext.cc.
UnicodeText::const_iterator UnicodeText::find | ( | const UnicodeText & | look | ) | const |
Definition at line 308 of file unicodetext.cc.
UnicodeText::const_iterator UnicodeText::find | ( | const UnicodeText & | look, |
const_iterator | start_pos | ||
) | const |
Definition at line 301 of file unicodetext.cc.
bool UnicodeText::HasReplacementChar | ( | ) | const |
UnicodeText::const_iterator UnicodeText::MakeIterator | ( | const char * | p | ) | const |
Definition at line 484 of file unicodetext.cc.
UnicodeText & UnicodeText::operator= | ( | const UnicodeText & | src | ) |
Definition at line 209 of file unicodetext.cc.
UnicodeText & UnicodeText::PointTo | ( | const const_iterator & | first, |
const const_iterator & | last | ||
) |
Definition at line 275 of file unicodetext.cc.
UnicodeText & UnicodeText::PointTo | ( | const UnicodeText & | src | ) |
Definition at line 270 of file unicodetext.cc.
UnicodeText & UnicodeText::PointToUTF8 | ( | const char * | utf8_buffer, |
int | byte_length | ||
) |
Definition at line 254 of file unicodetext.cc.
void UnicodeText::push_back | ( | char32 | codepoint | ) |
Definition at line 357 of file unicodetext.cc.
|
inline |
Definition at line 283 of file unicodetext.h.
|
inline |
Definition at line 286 of file unicodetext.h.
int UnicodeText::size | ( | ) | const |
Definition at line 373 of file unicodetext.cc.
UnicodeText & UnicodeText::TakeOwnershipOfUTF8 | ( | char * | utf8_buffer, |
int | byte_length, | ||
int | byte_capacity | ||
) |
Definition at line 237 of file unicodetext.cc.
|
inline |
Definition at line 311 of file unicodetext.h.
|
inline |
Definition at line 305 of file unicodetext.h.
|
inline |
Definition at line 308 of file unicodetext.h.
|
static |
Definition at line 202 of file unicodetext.cc.
|
friend |
Definition at line 348 of file unicodetext.h.
|
friend |
Definition at line 397 of file unicodetext.h.
|
friend |
Definition at line 377 of file unicodetext.cc.
|
friend |
Definition at line 349 of file unicodetext.h.