Loading [MathJax]/extensions/TeX/AMSmath.js
Radium Engine  1.6.3
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StringUtils.hpp
1#pragma once
2
3#include <Core/RaCore.hpp>
4#include <cstddef>
5#include <string>
6#include <string_view>
7
8namespace Ra {
9namespace Core {
10namespace Utils {
11//
12// File names and paths.
13// Todo : support backward slashes in windows paths.
14//
15
17RA_CORE_API std::string getFileExt( const std::string& str );
18
22RA_CORE_API std::string getDirName( const std::string& path );
23
31RA_CORE_API std::string getBaseName( const std::string& path, bool keepExtension = true );
32
40RA_CORE_API std::size_t
41replaceAllInString( std::string& inout, std::string_view what, std::string_view with );
42
49RA_CORE_API std::size_t removeAllInString( std::string& inout, std::string_view what );
50
51} // namespace Utils
52} // namespace Core
53} // namespace Ra
hepler function to manage enum as underlying types in VariableSet
Definition Cage.cpp:4