Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
ArkApi::Tools Namespace Reference

Functions

ARK_API std::string GetCurrentDir ()
 
ARK_API std::wstring ConvertToWideStr (const std::string &text)
 
ARK_API std::string ConvertToAnsiStr (const std::wstring &text)
 
ARK_API std::string Utf8Encode (const std::wstring &wstr)
 Converts a wide Unicode string to an UTF8 string.
 
ARK_API std::wstring Utf8Decode (const std::string &str)
 Converts an UTF8 string to a wide Unicode String.
 
ARK_API bool IsPluginLoaded (const std::string &plugin_name)
 Returns true if plugin was loaded, false otherwise.
 
ARK_API float GetApiVersion ()
 Returns Current Running Api Version.
 
std::string GetApiVer ()
 

Function Documentation

◆ ConvertToAnsiStr()

std::string ArkApi::Tools::ConvertToAnsiStr ( const std::wstring & text)

Definition at line 33 of file Tools.cpp.

◆ ConvertToWideStr()

std::wstring ArkApi::Tools::ConvertToWideStr ( const std::string & text)

Definition at line 17 of file Tools.cpp.

◆ GetApiVer()

std::string ArkApi::Tools::GetApiVer ( )

Definition at line 74 of file Tools.cpp.

◆ GetApiVersion()

float ArkApi::Tools::GetApiVersion ( )

Returns Current Running Api Version.

Definition at line 90 of file Tools.cpp.

◆ GetCurrentDir()

std::string ArkApi::Tools::GetCurrentDir ( )

Definition at line 7 of file Tools.cpp.

+ Here is the caller graph for this function:

◆ IsPluginLoaded()

bool ArkApi::Tools::IsPluginLoaded ( const std::string & plugin_name)

Returns true if plugin was loaded, false otherwise.

Definition at line 69 of file Tools.cpp.

◆ Utf8Decode()

std::wstring ArkApi::Tools::Utf8Decode ( const std::string & str)

Converts an UTF8 string to a wide Unicode String.

Definition at line 56 of file Tools.cpp.

+ Here is the caller graph for this function:

◆ Utf8Encode()

std::string ArkApi::Tools::Utf8Encode ( const std::wstring & wstr)

Converts a wide Unicode string to an UTF8 string.

Definition at line 43 of file Tools.cpp.