gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
StringUtils.h File Reference
#include <string.h>
#include <string>
#include <vector>
Include dependency graph for StringUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void SwapBytes (char *array, int size, int n)
 
std::string ExtractDoubleQuotedString (const char *str, int len)
 
std::string SanitizeTeXString (const char *in, int equation)
 
std::string FixWindowsPath (const std::string &in)
 
std::string FixRelativePath (const std::string &reference, const std::string &in)
 
std::vector< std::string > SplitFileName (const std::string &fileName)
 
std::string GetFileNameWithoutPath (const std::string &fileName)
 
std::string ConvertFileToString (const std::string &fileName)
 
void ReplaceSubStringInPlace (const std::string &olds, const std::string &news, std::string &str)
 
std::string ReplaceSubString (const std::string &olds, const std::string &news, const std::string &str)
 
void ConvertToHTML (std::string &in)
 
bool SplitOptionName (const std::string &fullName, std::string &category, std::string &name, int &index)
 
std::vector< std::string > SplitString (const std::string &msg, char separator, bool removeWhiteSpace=false)
 
std::string RemoveWhiteSpace (const std::string &s)
 
bool IsOnelabName (const std::string &name, std::string &cleanName)
 

Function Documentation

◆ ConvertFileToString()

std::string ConvertFileToString ( const std::string &  fileName)

Definition at line 119 of file StringUtils.cpp.

Referenced by initPView::operator()().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConvertToHTML()

void ConvertToHTML ( std::string &  in)

Definition at line 148 of file StringUtils.cpp.

Here is the call graph for this function:

◆ ExtractDoubleQuotedString()

std::string ExtractDoubleQuotedString ( const char *  str,
int  len 
)

Definition at line 27 of file StringUtils.cpp.

Referenced by GModel::_readMSH2(), GModel::_readMSH3(), GModel::_readMSH4(), and PView::readMSH().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FixRelativePath()

std::string FixRelativePath ( const std::string &  reference,
const std::string &  in 
)

Definition at line 77 of file StringUtils.cpp.

Referenced by drawContext::drawBackgroundImage(), drawContext::drawImage(), and ParseString().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FixWindowsPath()

std::string FixWindowsPath ( const std::string &  in)

Definition at line 65 of file StringUtils.cpp.

◆ GetFileNameWithoutPath()

std::string GetFileNameWithoutPath ( const std::string &  fileName)

Definition at line 113 of file StringUtils.cpp.

Here is the call graph for this function:

◆ IsOnelabName()

bool IsOnelabName ( const std::string &  name,
std::string &  cleanName 
)

Definition at line 225 of file StringUtils.cpp.

Referenced by GetOtherOption().

Here is the caller graph for this function:

◆ RemoveWhiteSpace()

std::string RemoveWhiteSpace ( const std::string &  s)

Definition at line 182 of file StringUtils.cpp.

Referenced by SplitString().

Here is the caller graph for this function:

◆ ReplaceSubString()

std::string ReplaceSubString ( const std::string &  olds,
const std::string &  news,
const std::string &  str 
)

Definition at line 140 of file StringUtils.cpp.

Referenced by api(), and opt_general_build_info().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReplaceSubStringInPlace()

void ReplaceSubStringInPlace ( const std::string &  olds,
const std::string &  news,
std::string &  str 
)

Definition at line 130 of file StringUtils.cpp.

Referenced by ConvertToHTML(), ReplaceSubString(), and scriptAddFieldOption().

Here is the caller graph for this function:

◆ SanitizeTeXString()

std::string SanitizeTeXString ( const char *  in,
int  equation 
)

Definition at line 39 of file StringUtils.cpp.

Referenced by drawContext::drawString().

Here is the caller graph for this function:

◆ SplitFileName()

◆ SplitOptionName()

bool SplitOptionName ( const std::string &  fullName,
std::string &  category,
std::string &  name,
int &  index 
)

Definition at line 156 of file StringUtils.cpp.

Referenced by GetOtherOption().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SplitString()

std::vector<std::string> SplitString ( const std::string &  msg,
char  separator,
bool  removeWhiteSpace = false 
)

Definition at line 210 of file StringUtils.cpp.

Referenced by drawEntityLabel(), and opt_general_scripting_languages().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SwapBytes()