Flutter Engine
The Flutter Engine
Static Public Member Functions | Static Public Attributes | List of all members
dart::Utf Class Reference

#include <unicode.h>

Inheritance diagram for dart::Utf:
dart::AllStatic

Static Public Member Functions

static bool IsLatin1 (int32_t code_point)
 
static bool IsBmp (int32_t code_point)
 
static bool IsSupplementary (int32_t code_point)
 
static bool IsOutOfRange (int32_t code_point)
 

Static Public Attributes

static constexpr int32_t kMaxCodePoint = 0x10FFFF
 
static constexpr int32_t kInvalidChar = 0xFFFFFFFF
 
static constexpr int32_t kReplacementChar = 0xFFFD
 

Detailed Description

Definition at line 16 of file unicode.h.

Member Function Documentation

◆ IsBmp()

static bool dart::Utf::IsBmp ( int32_t  code_point)
inlinestatic

Definition at line 27 of file unicode.h.

27 {
28 return (code_point >= 0) && (code_point <= 0xFFFF);
29 }

◆ IsLatin1()

static bool dart::Utf::IsLatin1 ( int32_t  code_point)
inlinestatic

Definition at line 23 of file unicode.h.

23 {
24 return (code_point >= 0) && (code_point <= 0xFF);
25 }

◆ IsOutOfRange()

static bool dart::Utf::IsOutOfRange ( int32_t  code_point)
inlinestatic

Definition at line 36 of file unicode.h.

36 {
37 return (code_point < 0) || (code_point > kMaxCodePoint);
38 }
static constexpr int32_t kMaxCodePoint
Definition: unicode.h:18

◆ IsSupplementary()

static bool dart::Utf::IsSupplementary ( int32_t  code_point)
inlinestatic

Definition at line 31 of file unicode.h.

31 {
32 return (code_point > 0xFFFF) && (code_point <= kMaxCodePoint);
33 }

Member Data Documentation

◆ kInvalidChar

constexpr int32_t dart::Utf::kInvalidChar = 0xFFFFFFFF
staticconstexpr

Definition at line 19 of file unicode.h.

◆ kMaxCodePoint

constexpr int32_t dart::Utf::kMaxCodePoint = 0x10FFFF
staticconstexpr

Definition at line 18 of file unicode.h.

◆ kReplacementChar

constexpr int32_t dart::Utf::kReplacementChar = 0xFFFD
staticconstexpr

Definition at line 21 of file unicode.h.


The documentation for this class was generated from the following file: