Flutter Engine
The Flutter Engine
Functions
SkUnicode_icu_bidi.cpp File Reference
#include "modules/skunicode/src/SkUnicode_icu_bidi.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkDebug.h"
#include "include/private/base/SkTFitsIn.h"
#include "src/base/SkUTF.h"
#include <unicode/ubidi.h>
#include <unicode/umachine.h>
#include <unicode/utypes.h>
#include <cstdint>
#include <memory>
#include <string>
#include <utility>
#include <vector>

Go to the source code of this file.

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 87 of file SkUnicode_icu_bidi.cpp.

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