yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::cli::anonymous_namespace{usage_schema.cc} Namespace Reference

Classes

struct  Token
 

Enumerations

enum class  TokenKind {
  kOpenOptional , kOpenGroup , kClose , kBar ,
  kWord
}
 

Functions

bool IsGroupDelimiter (char c)
 
bool IsChoiceChar (char c)
 
bool IsFlagWord (absl::string_view word)
 
std::string ReadWord (absl::string_view usage, size_t &pos)
 
std::vector< Token > Tokenize (absl::string_view usage)
 
std::string NormalizeHint (absl::string_view hint)
 
std::vector< std::string > ExtractChoices (absl::string_view hint)
 
bool IsValidName (absl::string_view name)
 
std::string PositionalName (absl::string_view placeholder)
 
bool IsValueWord (const Token &token)
 

Enumeration Type Documentation

◆ TokenKind

enum class yaze::cli::anonymous_namespace{usage_schema.cc}::TokenKind
strong
Enumerator
kOpenOptional 
kOpenGroup 
kClose 
kBar 
kWord 

Definition at line 16 of file usage_schema.cc.

Function Documentation

◆ IsGroupDelimiter()

bool yaze::cli::anonymous_namespace{usage_schema.cc}::IsGroupDelimiter ( char c)

Definition at line 23 of file usage_schema.cc.

References IsGroupDelimiter().

Referenced by IsGroupDelimiter(), and ReadWord().

Here is the call graph for this function:

◆ IsChoiceChar()

bool yaze::cli::anonymous_namespace{usage_schema.cc}::IsChoiceChar ( char c)

Definition at line 27 of file usage_schema.cc.

References IsChoiceChar().

Referenced by ExtractChoices(), and IsChoiceChar().

Here is the call graph for this function:

◆ IsFlagWord()

bool yaze::cli::anonymous_namespace{usage_schema.cc}::IsFlagWord ( absl::string_view word)

Definition at line 32 of file usage_schema.cc.

References IsFlagWord().

Referenced by IsFlagWord().

Here is the call graph for this function:

◆ ReadWord()

std::string yaze::cli::anonymous_namespace{usage_schema.cc}::ReadWord ( absl::string_view usage,
size_t & pos )

Definition at line 38 of file usage_schema.cc.

References IsGroupDelimiter(), and ReadWord().

Referenced by ReadWord(), and Tokenize().

Here is the call graph for this function:

◆ Tokenize()

std::vector< Token > yaze::cli::anonymous_namespace{usage_schema.cc}::Tokenize ( absl::string_view usage)

Definition at line 65 of file usage_schema.cc.

References ReadWord(), and Tokenize().

Referenced by Tokenize().

Here is the call graph for this function:

◆ NormalizeHint()

std::string yaze::cli::anonymous_namespace{usage_schema.cc}::NormalizeHint ( absl::string_view hint)

Definition at line 96 of file usage_schema.cc.

References NormalizeHint().

Referenced by NormalizeHint(), and PositionalName().

Here is the call graph for this function:

◆ ExtractChoices()

std::vector< std::string > yaze::cli::anonymous_namespace{usage_schema.cc}::ExtractChoices ( absl::string_view hint)

Definition at line 105 of file usage_schema.cc.

References ExtractChoices(), and IsChoiceChar().

Referenced by ExtractChoices().

Here is the call graph for this function:

◆ IsValidName()

bool yaze::cli::anonymous_namespace{usage_schema.cc}::IsValidName ( absl::string_view name)

Definition at line 119 of file usage_schema.cc.

References IsValidName().

Referenced by IsValidName().

Here is the call graph for this function:

◆ PositionalName()

std::string yaze::cli::anonymous_namespace{usage_schema.cc}::PositionalName ( absl::string_view placeholder)

Definition at line 128 of file usage_schema.cc.

References NormalizeHint(), and PositionalName().

Referenced by PositionalName().

Here is the call graph for this function:

◆ IsValueWord()

bool yaze::cli::anonymous_namespace{usage_schema.cc}::IsValueWord ( const Token & token)

Definition at line 137 of file usage_schema.cc.

References IsValueWord(), yaze::cli::anonymous_namespace{usage_schema.cc}::Token::kind, and yaze::cli::anonymous_namespace{usage_schema.cc}::Token::text.

Referenced by IsValueWord().

Here is the call graph for this function: