IDL compiler front-end library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
AST::Identifier Class Reference

An identifier. More...

#include <Identifier.h>

Inheritance diagram for AST::Identifier:
AST::SimpleDeclarator AST::Declarator

Public Member Functions

bool operator< (const Identifier &r) const noexcept
 CORBA IDL identifiers are case-insensitive.
 
 Identifier ()
 Default constructor.
 
 Identifier (const char *s, size_t len)
 
 Identifier (const char *s)
 
 Identifier (std::string &&s) noexcept
 
bool valid () const noexcept
 
bool operator== (const char *s) const noexcept
 Case-insensitive equivalency.
 

Detailed Description

An identifier.

Definition at line 36 of file Identifier.h.

Constructor & Destructor Documentation

◆ Identifier() [1/3]

AST::Identifier::Identifier ( const char *  s,
size_t  len 
)
inline

CORBA identifiers may be "escaped" by the underscore.

See 7.2.3.2 of https://www.omg.org/spec/IDL/4.2/

Definition at line 48 of file Identifier.h.

◆ Identifier() [2/3]

AST::Identifier::Identifier ( const char *  s)
inline

CORBA identifiers may be "escaped" by the underscore.

See 7.2.3.2 of https://www.omg.org/spec/IDL/4.2/

Definition at line 55 of file Identifier.h.

◆ Identifier() [3/3]

AST::Identifier::Identifier ( std::string &&  s)
inlinenoexcept

CORBA identifiers may be "escaped" by the underscore.

See 7.2.3.2 of https://www.omg.org/spec/IDL/4.2/

Definition at line 62 of file Identifier.h.

Member Function Documentation

◆ valid()

bool AST::Identifier::valid ( ) const
noexcept

Check for reserved word collision.

Returns
true if identifier is valid.

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