Classes | Public Types | Public Member Functions | Private Attributes | Friends | List of all members
lexy::code_point Class Reference

A unicode code point. More...

#include <code_point.hpp>

Classes

struct  _gc_group
 

Public Types

enum  general_category_t {
  LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter),
  LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter),
  LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter),
  LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter),
  LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter),
  LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter),
  LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter),
  LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter)
}
 

Public Member Functions

constexpr code_point () noexcept
 
constexpr code_point (char32_t value) noexcept
 
LEXY_UNICODE_CONSTEXPR general_category_t general_category () const noexcept
 
constexpr bool is_ascii () const noexcept
 
constexpr bool is_bmp () const noexcept
 
constexpr bool is_control () const noexcept
 
constexpr bool is_noncharacter () const noexcept
 
constexpr bool is_private_use () const noexcept
 
constexpr bool is_scalar () const noexcept
 
constexpr bool is_surrogate () const noexcept
 
constexpr bool is_valid () const noexcept
 
 LEXY_UNICODE_CATEGORY_GROUP ("cased-letter", LC, cased_letter, Lu, Ll, Lt)
 
 LEXY_UNICODE_CATEGORY_GROUP ("letter", L, letter, Lu, Ll, Lt, Lm, Lo)
 
 LEXY_UNICODE_CATEGORY_GROUP ("mark", M, mark, Mn, Mc, Me)
 
 LEXY_UNICODE_CATEGORY_GROUP ("number", N, number, Nd, Nl, No)
 
 LEXY_UNICODE_CATEGORY_GROUP ("other", C, other, Cc, Cf, Cs, Co, Cn)
 
 LEXY_UNICODE_CATEGORY_GROUP ("punctuation", P, punctuation, Pc, Pd, Ps, Pe, Pi, Pf, Po)
 
 LEXY_UNICODE_CATEGORY_GROUP ("separator", Z, separator, Zs, Zl, Zp)
 
 LEXY_UNICODE_CATEGORY_GROUP ("symbol", S, symbol, Sm, Sc, Sk, So)
 
constexpr auto value () const noexcept
 

Private Attributes

char32_t _value
 

Friends

constexpr friend bool operator!= (code_point lhs, code_point rhs) noexcept
 
constexpr friend bool operator== (code_point lhs, code_point rhs) noexcept
 

Detailed Description

A unicode code point.

Definition at line 24 of file code_point.hpp.

Member Enumeration Documentation

◆ general_category_t

Enumerator
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 
LEXY_UNICODE_CATEGORY 

Definition at line 80 of file code_point.hpp.

Constructor & Destructor Documentation

◆ code_point() [1/2]

constexpr lexy::code_point::code_point ( )
inlineconstexprnoexcept

Definition at line 27 of file code_point.hpp.

◆ code_point() [2/2]

constexpr lexy::code_point::code_point ( char32_t  value)
inlineexplicitconstexprnoexcept

Definition at line 28 of file code_point.hpp.

Member Function Documentation

◆ general_category()

LEXY_UNICODE_CONSTEXPR general_category_t lexy::code_point::general_category ( ) const
noexcept

◆ is_ascii()

constexpr bool lexy::code_point::is_ascii ( ) const
inlineconstexprnoexcept

Definition at line 36 of file code_point.hpp.

◆ is_bmp()

constexpr bool lexy::code_point::is_bmp ( ) const
inlineconstexprnoexcept

Definition at line 40 of file code_point.hpp.

◆ is_control()

constexpr bool lexy::code_point::is_control ( ) const
inlineconstexprnoexcept

Definition at line 49 of file code_point.hpp.

◆ is_noncharacter()

constexpr bool lexy::code_point::is_noncharacter ( ) const
inlineconstexprnoexcept

Definition at line 63 of file code_point.hpp.

◆ is_private_use()

constexpr bool lexy::code_point::is_private_use ( ) const
inlineconstexprnoexcept

Definition at line 57 of file code_point.hpp.

◆ is_scalar()

constexpr bool lexy::code_point::is_scalar ( ) const
inlineconstexprnoexcept

Definition at line 74 of file code_point.hpp.

◆ is_surrogate()

constexpr bool lexy::code_point::is_surrogate ( ) const
inlineconstexprnoexcept

Definition at line 53 of file code_point.hpp.

◆ is_valid()

constexpr bool lexy::code_point::is_valid ( ) const
inlineconstexprnoexcept

Definition at line 44 of file code_point.hpp.

◆ LEXY_UNICODE_CATEGORY_GROUP() [1/8]

lexy::code_point::LEXY_UNICODE_CATEGORY_GROUP ( "cased-letter"  ,
LC  ,
cased_letter  ,
Lu  ,
Ll  ,
Lt   
)

◆ LEXY_UNICODE_CATEGORY_GROUP() [2/8]

lexy::code_point::LEXY_UNICODE_CATEGORY_GROUP ( "letter"  ,
,
letter  ,
Lu  ,
Ll  ,
Lt  ,
Lm  ,
Lo   
)

◆ LEXY_UNICODE_CATEGORY_GROUP() [3/8]

lexy::code_point::LEXY_UNICODE_CATEGORY_GROUP ( "mark"  ,
,
mark  ,
Mn  ,
Mc  ,
Me   
)

◆ LEXY_UNICODE_CATEGORY_GROUP() [4/8]

lexy::code_point::LEXY_UNICODE_CATEGORY_GROUP ( "number"  ,
,
number  ,
Nd  ,
Nl  ,
No   
)

◆ LEXY_UNICODE_CATEGORY_GROUP() [5/8]

lexy::code_point::LEXY_UNICODE_CATEGORY_GROUP ( "other"  ,
,
other  ,
Cc  ,
Cf  ,
Cs  ,
Co  ,
Cn   
)

◆ LEXY_UNICODE_CATEGORY_GROUP() [6/8]

lexy::code_point::LEXY_UNICODE_CATEGORY_GROUP ( "punctuation"  ,
,
punctuation  ,
Pc  ,
Pd  ,
Ps  ,
Pe  ,
Pi  ,
Pf  ,
Po   
)

◆ LEXY_UNICODE_CATEGORY_GROUP() [7/8]

lexy::code_point::LEXY_UNICODE_CATEGORY_GROUP ( "separator"  ,
,
separator  ,
Zs  ,
Zl  ,
Zp   
)

◆ LEXY_UNICODE_CATEGORY_GROUP() [8/8]

lexy::code_point::LEXY_UNICODE_CATEGORY_GROUP ( "symbol"  ,
,
symbol  ,
Sm  ,
Sc  ,
Sk  ,
So   
)

◆ value()

constexpr auto lexy::code_point::value ( ) const
inlineconstexprnoexcept

Definition at line 30 of file code_point.hpp.

Friends And Related Function Documentation

◆ operator!=

constexpr friend bool operator!= ( code_point  lhs,
code_point  rhs 
)
friend

Definition at line 171 of file code_point.hpp.

◆ operator==

constexpr friend bool operator== ( code_point  lhs,
code_point  rhs 
)
friend

Definition at line 167 of file code_point.hpp.

Member Data Documentation

◆ _value

char32_t lexy::code_point::_value
private

Definition at line 177 of file code_point.hpp.


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


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Jun 28 2024 02:20:09