Radium Engine  1.5.20
Loading...
Searching...
No Matches
StringUtils.hpp
1#pragma once
2
3#include <Core/RaCore.hpp>
4#include <string>
5
6namespace Ra {
7namespace Core {
8namespace Utils {
9//
10// File names and paths.
11// Todo : support backward slashes in windows paths.
12//
13
15RA_CORE_API std::string getFileExt( const std::string& str );
16
20RA_CORE_API std::string getDirName( const std::string& path );
21
29RA_CORE_API std::string getBaseName( const std::string& path, bool keepExtension = true );
30
38RA_CORE_API std::size_t
39replaceAllInString( std::string& inout, std::string_view what, std::string_view with );
40
47RA_CORE_API std::size_t removeAllInString( std::string& inout, std::string_view what );
48
49} // namespace Utils
50} // namespace Core
51} // namespace Ra
hepler function to manage enum as underlying types in VariableSet
Definition Cage.cpp:3