Blamite Game Engine - Blam (Core)
string.h File Reference
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

 Blam
 Namespace surrounding all major engine components.
 
 Blam::Utils
 Namespace containing general-purpose utilities.
 
 Blam::Utils::String
 Utilities for working with and modifying strings.
 

Macros

#define BLAM
 
#define str_tolower(str)   Blam::Utils::String::to_lower(str);
 
#define str_toupper(str)   Blam::Utils::String::to_upper(str);
 

Functions

BLAM bool Blam::Utils::String::StartsWith (std::string string, std::string starts_with, bool case_insensetive)
 Determines whether or not a string starts with another string, case-insensetive. More...
 
BLAM bool Blam::Utils::String::EndsWith (std::string string, std::string ends_with, bool case_insensetive)
 Determines whether or not a string ends with another string, case-sensetive. More...
 
BLAM std::string Blam::Utils::String::Replace (std::string orig, std::string to_replace, std::string replace_with)
 Replaces part of a string with another string. More...
 
BLAM std::string Blam::Utils::String::ToLower (std::string string)
 Transforms a string to all-lowercase. More...
 
BLAM std::string Blam::Utils::String::ToUpper (std::string string)
 Transforms a string to all-uppercase. More...
 
BLAM std::string Blam::Utils::String::FixDirectorySeparators (std::string string)
 Replaces any instance of \\\ in a string with /. More...
 
BLAM std::vector< std::string > Blam::Utils::String::Split (std::string string, std::string splitter)
 Splits a string around any instance of a substring. More...
 
BLAM bool Blam::Utils::String::ContainsChar (std::string string, char contains)
 Determines whether or not a string contains the specified character. More...
 
BLAM bool Blam::Utils::String::MemoryStringCompare (char *address, char *to_compare, int size)
 Checks the specified address in memory to see if it matches a given string, ignoring null terminators. More...
 

Macro Definition Documentation

◆ BLAM

#define BLAM

◆ str_tolower

#define str_tolower (   str)    Blam::Utils::String::to_lower(str);

◆ str_toupper

#define str_toupper (   str)    Blam::Utils::String::to_upper(str);