CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CiString.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
11
12#include <cctype>
13
15
16 // Converts the specified String into an CiString.
17 inline CiString toCiString(const String& s) { return CiString(toCaseInsensitive(s)); }
18
19 // Converts the specified CiString into an String.
20 inline String toString(const CiString& s) { return String(toCaseSensitive(s)); }
21
22} // namespace CeresEngine::ShaderCompiler
Basic string that uses framework's memory allocators.
Definition String.hpp:60
Definition AST.hpp:33
String toString(const CiString &s)
Definition CiString.hpp:20
CiString toCiString(const String &s)
Definition CiString.hpp:17
CiBasicStringView< T > toCaseInsensitive(const BasicString< T, RawAllocator > &view)
Definition String.hpp:294
CiBasicString< char > CiString
Narrow case-insensitive string used for handling narrow encoded text (either locale specific ANSI or ...
Definition String.hpp:252
BasicStringView< T > toCaseSensitive(const CiBasicString< T, RawAllocator > &view)
Definition String.hpp:303
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25