Mania++
 All Classes Functions Variables Pages
Static Public Member Functions | List of all members
Formatting Class Reference

Formats TM-input to strip colors/formatting. More...

#include <Formatting.h>

Static Public Member Functions

static std::string StripColors (std::string src, bool forTM=true)
 Strips all TrackMania colors from a string. More...
 
static std::string StripLinks (std::string src, bool forTM=true)
 Strips all TrackMania links from a string. More...
 

Detailed Description

Formats TM-input to strip colors/formatting.

Member Function Documentation

static std::string Formatting::StripColors ( std::string  src,
bool  forTM = true 
)
inlinestatic

Strips all TrackMania colors from a string.

Parameters
srcString to be de-colorfied.
forTMOutput for TM chat? (default: true)
static std::string Formatting::StripLinks ( std::string  src,
bool  forTM = true 
)
inlinestatic

Strips all TrackMania links from a string.

Parameters
srcString to be de-linkified.
forTMOutput for TM chat? (default: true)

The documentation for this class was generated from the following file: