#include <object.h>
Definition at line 10160 of file object.h.
◆ CodePointIterator() [1/2]
dart::String::CodePointIterator::CodePointIterator |
( |
const String & |
str | ) |
|
|
inlineexplicit |
Definition at line 10162 of file object.h.
10163 : str_(str), ch_(0), index_(-1), end_(str.Length()) {
10165 }
◆ CodePointIterator() [2/2]
dart::String::CodePointIterator::CodePointIterator |
( |
const String & |
str, |
|
|
intptr_t |
start, |
|
|
intptr_t |
length |
|
) |
| |
|
inline |
◆ Current()
int32_t dart::String::CodePointIterator::Current |
( |
| ) |
const |
|
inline |
Definition at line 10173 of file object.h.
10173 {
10176 return ch_;
10177 }
◆ Next()
bool dart::String::CodePointIterator::Next |
( |
| ) |
|
Definition at line 24397 of file object.cc.
24397 {
24400 if (index_ < (end_ -
length)) {
24402 ch_ = str_.
CharAt(index_);
24404 int32_t ch2 = str_.
CharAt(index_ + 1);
24407 }
24408 }
24409 return true;
24410 }
24411 index_ = end_;
24412 return false;
24413}
uint16_t CharAt(intptr_t index) const
static int32_t Decode(uint16_t lead, uint16_t trail)
static bool IsLeadSurrogate(uint32_t ch)
static intptr_t Length(int32_t ch)
static bool IsTrailSurrogate(uint32_t ch)
The documentation for this class was generated from the following files:
- third_party/dart-lang/sdk/runtime/vm/object.h
- third_party/dart-lang/sdk/runtime/vm/object.cc