Elaztek Developer Hub
Blamite Game Engine - Keystone  00433.02.16.25.2127.blamite
A library that enables the use of Qt in Blamite's editing tools.
io.cpp File Reference
#include "FontToolWindow.h"
#include <Strings/components/3rdparty/rapidxml/rapidxml.hpp>
#include <Strings/components/utils/io/io.h>
#include <Strings/components/logger/logger.h>
#include <Strings/components/utils/converters/converters.h>
#include <Strings/components/utils/list/list.h>
#include <Strings/components/utils/string/string.h>
#include <Strings/components/utils/xml/xml.h>
+ Include dependency graph for io.cpp:

Functions

std::string get_safe_glyph_for_xml (char glyph)
 Generates a safe name for a font glyph that will be able to be stored properly in an XML document. More...
 
std::string get_safe_glyph_name (char glyph)
 Generates a safe name for a font glyph that will be able to be stored properly in an XML document. More...
 

Function Documentation

◆ get_safe_glyph_for_xml()

std::string get_safe_glyph_for_xml ( char  glyph)

Generates a safe name for a font glyph that will be able to be stored properly in an XML document.

This will encode special characters as hexadecimal, and apply the lower_ prefix to all lowercase character names.

Parameters
glyph- The glyph to generate a safe name for.
Returns
A safe display name for a font glyph.
+ Here is the caller graph for this function:

◆ get_safe_glyph_name()

std::string get_safe_glyph_name ( char  glyph)

Generates a safe name for a font glyph that will be able to be stored properly in an XML document.

This will typically use friendlier names for some common special characters, as well as apply the lower_ prefix to lowercase characters.

Parameters
glyph- The glyph to generate a safe name for.
Returns
A safe display name for a font glyph.
+ Here is the call graph for this function: