tesseract
5.0.0-alpha-619-ge9db
|
#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 118 of file unicodetext.h.
UnicodeText::UnicodeText | ( | ) |
Definition at line 183 of file unicodetext.cc.
UnicodeText::UnicodeText | ( | const UnicodeText & | src | ) |
Definition at line 187 of file unicodetext.cc.
UnicodeText::UnicodeText | ( | const const_iterator & | first, |
const const_iterator & | last | ||
) |
Definition at line 192 of file unicodetext.cc.
UnicodeText::~UnicodeText | ( | ) |
Definition at line 351 of file unicodetext.cc.
UnicodeText & UnicodeText::append | ( | const const_iterator & | first, |
const const_iterator & | last | ||
) |
Definition at line 292 of file unicodetext.cc.
UnicodeText & UnicodeText::append | ( | const UnicodeText & | source | ) |
Definition at line 287 of file unicodetext.cc.
|
inline |
Definition at line 160 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 346 of file unicodetext.cc.
UnicodeText & UnicodeText::Copy | ( | const UnicodeText & | src | ) |
Definition at line 214 of file unicodetext.cc.
UnicodeText & UnicodeText::CopyUTF8 | ( | const char * | utf8_buffer, |
int | byte_length | ||
) |
Definition at line 219 of file unicodetext.cc.
string UnicodeText::DebugString | ( | ) | const |
Definition at line 381 of file unicodetext.cc.
|
inline |
Definition at line 145 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 313 of file unicodetext.cc.
UnicodeText::const_iterator UnicodeText::find | ( | const UnicodeText & | look, |
const_iterator | start_pos | ||
) | const |
Definition at line 306 of file unicodetext.cc.
bool UnicodeText::HasReplacementChar | ( | ) | const |
Definition at line 331 of file unicodetext.cc.
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 207 of file unicodetext.cc.
UnicodeText & UnicodeText::PointTo | ( | const const_iterator & | first, |
const const_iterator & | last | ||
) |
Definition at line 278 of file unicodetext.cc.
UnicodeText & UnicodeText::PointTo | ( | const UnicodeText & | src | ) |
Definition at line 273 of file unicodetext.cc.
UnicodeText & UnicodeText::PointToUTF8 | ( | const char * | utf8_buffer, |
int | byte_length | ||
) |
Definition at line 256 of file unicodetext.cc.
void UnicodeText::push_back | ( | char32 | codepoint | ) |
Definition at line 354 of file unicodetext.cc.
|
inline |
Definition at line 270 of file unicodetext.h.
|
inline |
Definition at line 273 of file unicodetext.h.
int UnicodeText::size | ( | ) | const |
Definition at line 371 of file unicodetext.cc.
UnicodeText & UnicodeText::TakeOwnershipOfUTF8 | ( | char * | utf8_buffer, |
int | byte_length, | ||
int | byte_capacity | ||
) |
Definition at line 236 of file unicodetext.cc.
|
inline |
Definition at line 294 of file unicodetext.h.
|
inline |
Definition at line 292 of file unicodetext.h.
|
inline |
Definition at line 293 of file unicodetext.h.
|
static |
|
friend |
Definition at line 332 of file unicodetext.h.
|
friend |
Definition at line 380 of file unicodetext.h.
|
friend |
Definition at line 375 of file unicodetext.cc.
|
friend |
Definition at line 333 of file unicodetext.h.