WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
core Namespace Reference

Common string utility functions (split, case-insensitive search, etc.). More...

Classes

struct  DBDBuild
 
struct  DBDColumnDef
 
class  DBDFile
 Parsed content of a single .dbd file (database definition). More...
 
struct  DBDVersionDef
 
struct  DBDVersionField
 
class  FieldStructure
 Describes a single field (column) in a database table. More...
 
class  Game
 Singleton entry point for the game data layer. More...
 
class  GameConfig
 Describes a detected game installation (locale, version, product). More...
 
class  GameDatabase
 
class  GameFolder
 Abstract base for game data folder backends (CASC, loose files, etc.). More...
 
class  GlobalSettings
 Singleton providing application-wide version info and global flags. More...
 
class  IniFile
 Simple INI file reader/writer with section/key support. More...
 
class  TableStructure
 Describes the schema of a database table (name, file path, fields). More...
 

Typedefs

using ProgressCallback = std::function< void(int, int)>
 

Functions

void __cdecl displayMemInfo (std::string message, bool displaySQLiteSize=false)
 Log current process memory usage to the Logger.
 
int __cdecl getMemoryUsed ()
 Return the current process memory usage in kilobytes.
 
std::vector< std::string > split (const std::string &s, char delimiter)
 Split a string by a single-character delimiter.
 
std::vector< std::string > split (const std::string &s, const std::string &delimiter)
 
std::string toLower (const std::string &s)
 
bool containsIgnoreCase (const std::string &s, const std::string &substr)
 
bool startsWithIgnoreCase (const std::string &s, const std::string &prefix)
 
bool endsWithIgnoreCase (const std::string &s, const std::string &suffix)
 
int safeStoi (const std::string &s, int fallback=0)
 

Detailed Description

Common string utility functions (split, case-insensitive search, etc.).

Typedef Documentation

◆ ProgressCallback

using core::ProgressCallback = typedef std::function<void(int, int)>

Definition at line 12 of file GameFolder.h.

Function Documentation

◆ containsIgnoreCase()

bool core::containsIgnoreCase ( const std::string &  s,
const std::string &  substr 
)
inline

Definition at line 44 of file string_utils.h.

Here is the caller graph for this function:

◆ displayMemInfo()

void core::displayMemInfo ( std::string  message,
bool  displaySQLiteSize = false 
)

Log current process memory usage to the Logger.

Parameters
messageDescriptive label for the log entry.
displaySQLiteSizeIf true, also log SQLite memory usage.

Definition at line 7 of file MemoryUtils.cpp.

Here is the call graph for this function:

◆ endsWithIgnoreCase()

bool core::endsWithIgnoreCase ( const std::string &  s,
const std::string &  suffix 
)
inline

Definition at line 58 of file string_utils.h.

Here is the caller graph for this function:

◆ getMemoryUsed()

int core::getMemoryUsed ( )

Return the current process memory usage in kilobytes.

Definition at line 13 of file MemoryUtils.cpp.

Here is the caller graph for this function:

◆ safeStoi()

int core::safeStoi ( const std::string &  s,
int  fallback = 0 
)
inline

Definition at line 65 of file string_utils.h.

◆ split() [1/2]

std::vector< std::string > core::split ( const std::string &  s,
char  delimiter 
)
inline

Split a string by a single-character delimiter.

Definition at line 12 of file string_utils.h.

Here is the caller graph for this function:

◆ split() [2/2]

std::vector< std::string > core::split ( const std::string &  s,
const std::string &  delimiter 
)
inline

Definition at line 22 of file string_utils.h.

◆ startsWithIgnoreCase()

bool core::startsWithIgnoreCase ( const std::string &  s,
const std::string &  prefix 
)
inline

Definition at line 51 of file string_utils.h.

Here is the caller graph for this function:

◆ toLower()

std::string core::toLower ( const std::string &  s)
inline

Definition at line 36 of file string_utils.h.

Here is the caller graph for this function: