Loading [MathJax]/extensions/TeX/AMSsymbols.js
Radium Engine  1.5.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
StringUtils.hpp
1 #pragma once
2 
3 #include <Core/RaCore.hpp>
4 #include <string>
5 
6 namespace Ra {
7 namespace Core {
8 namespace Utils {
9 //
10 // File names and paths.
11 // Todo : support backward slashes in windows paths.
12 //
13 
15 RA_CORE_API std::string getFileExt( const std::string& str );
16 
20 RA_CORE_API std::string getDirName( const std::string& path );
21 
29 RA_CORE_API std::string getBaseName( const std::string& path, bool keepExtension = true );
30 
38 RA_CORE_API std::size_t
39 replaceAllInString( std::string& inout, std::string_view what, std::string_view with );
40 
47 RA_CORE_API std::size_t removeAllInString( std::string& inout, std::string_view what );
48 
49 } // namespace Utils
50 } // namespace Core
51 } // namespace Ra
Definition: Cage.cpp:3