LibreOffice Module codemaker (master) 1
Enumerations | Functions
codemaker::cpp Namespace Reference

Enumerations

enum class  IdentifierTranslationMode {
  Global ,
  NonGlobal
}
 

Functions

OString scopedCppName (OString const &type, bool ns_alias)
 
OString translateUnoToCppType (codemaker::UnoType::Sort sort, std::u16string_view nucleus)
 
OString translateUnoToCppIdentifier (OString const &unoIdentifier, std::string_view prefix, IdentifierTranslationMode transmode, OString const *forbidden)
 
rtl::OString scopedCppName (rtl::OString const &type, bool ns_alias=true)
 Stick a namespace scope to c++ type. More...
 
rtl::OString translateUnoToCppIdentifier (rtl::OString const &identifier, std::string_view prefix, IdentifierTranslationMode transmode=IdentifierTranslationMode::Global, rtl::OString const *forbidden=nullptr)
 

Enumeration Type Documentation

◆ IdentifierTranslationMode

Enumerator
Global 
NonGlobal 

Definition at line 50 of file commoncpp.hxx.

Function Documentation

◆ scopedCppName() [1/2]

OString codemaker::cpp::scopedCppName ( OString const &  type,
bool  ns_alias 
)

Definition at line 38 of file commoncpp.cxx.

References o3tl::getToken(), nPos, and type.

◆ scopedCppName() [2/2]

rtl::OString codemaker::cpp::scopedCppName ( rtl::OString const &  type,
bool  ns_alias = true 
)

Stick a namespace scope to c++ type.

Parameters
typeUndecorated type
ns_aliasUse common namespace aliases instead of fully specified (nested) namespace. currently replaces com::sun::star with css.

◆ translateUnoToCppIdentifier() [1/2]

OString codemaker::cpp::translateUnoToCppIdentifier ( OString const &  unoIdentifier,
std::string_view  prefix,
IdentifierTranslationMode  transmode,
OString const *  forbidden 
)

Definition at line 90 of file commoncpp.cxx.

References Global, and prefix.

◆ translateUnoToCppIdentifier() [2/2]

rtl::OString codemaker::cpp::translateUnoToCppIdentifier ( rtl::OString const &  identifier,
std::string_view  prefix,
IdentifierTranslationMode  transmode = IdentifierTranslationMode::Global,
rtl::OString const *  forbidden = nullptr 
)

◆ translateUnoToCppType()

rtl::OString codemaker::cpp::translateUnoToCppType ( codemaker::UnoType::Sort  sort,
std::u16string_view  nucleus 
)

Definition at line 66 of file commoncpp.cxx.

References codemaker::UnoType::Any, codemaker::UnoType::Interface, u, and u2b().