LibreOffice Module codemaker (master) 1
|
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) |
|
strong |
Enumerator | |
---|---|
Global | |
NonGlobal |
Definition at line 50 of file commoncpp.hxx.
OString codemaker::cpp::scopedCppName | ( | OString const & | type, |
bool | ns_alias | ||
) |
Definition at line 38 of file commoncpp.cxx.
References o3tl::getToken(), nPos, and type.
rtl::OString codemaker::cpp::scopedCppName | ( | rtl::OString const & | type, |
bool | ns_alias = true |
||
) |
Stick a namespace scope to c++ type.
type | Undecorated type |
ns_alias | Use common namespace aliases instead of fully specified (nested) namespace. currently replaces com::sun::star with css. |
OString codemaker::cpp::translateUnoToCppIdentifier | ( | OString const & | unoIdentifier, |
std::string_view | prefix, | ||
IdentifierTranslationMode | transmode, | ||
OString const * | forbidden | ||
) |
Definition at line 90 of file commoncpp.cxx.
rtl::OString codemaker::cpp::translateUnoToCppIdentifier | ( | rtl::OString const & | identifier, |
std::string_view | prefix, | ||
IdentifierTranslationMode | transmode = IdentifierTranslationMode::Global , |
||
rtl::OString const * | forbidden = nullptr |
||
) |
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().