-
-
Notifications
You must be signed in to change notification settings - Fork 190
/
StringUtils.h
21 lines (18 loc) · 845 Bytes
/
StringUtils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*---------------------------------------------------------*\
| StringUtils.h |
| |
| String utility functions |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <string>
class StringUtils
{
public:
static const char* wchar_to_char(const wchar_t* pwchar);
static std::string wstring_to_string(const std::wstring wstring);
static std::string u16string_to_string(const std::u16string wstring);
static const std::string remove_null_terminating_chars(std::string input);
};