Flutter Engine
The Flutter Engine
Classes | Functions
SkShaper.cpp File Reference
#include "include/core/SkFont.h"
#include "include/core/SkFontMetrics.h"
#include "include/core/SkFontMgr.h"
#include "include/core/SkFontStyle.h"
#include "include/core/SkTypeface.h"
#include "include/private/base/SkTFitsIn.h"
#include "modules/skshaper/include/SkShaper.h"
#include "src/base/SkUTF.h"
#include <limits.h>
#include <algorithm>
#include <cstring>
#include <locale>
#include <string>
#include <utility>

Go to the source code of this file.

Classes

class  FontMgrRunIterator
 

Functions

static SkUnichar utf8_next (const char **ptr, const char *end)
 

Function Documentation

◆ utf8_next()

static SkUnichar utf8_next ( const char **  ptr,
const char *  end 
)
inlinestatic

Replaces invalid utf-8 sequences with REPLACEMENT CHARACTER U+FFFD.

Definition at line 84 of file SkShaper.cpp.

84 {
85 SkUnichar val = SkUTF::NextUTF8(ptr, end);
86 return val < 0 ? 0xFFFD : val;
87}
int32_t SkUnichar
Definition: SkTypes.h:175
glong glong end
SK_SPI SkUnichar NextUTF8(const char **ptr, const char *end)
Definition: SkUTF.cpp:118