mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-06-24 13:48:45 -04:00
25 lines
1.0 KiB
C++
25 lines
1.0 KiB
C++
/*---------------------------------------------------------*\
|
|
| StringUtils.h |
|
|
| |
|
|
| String utility functions |
|
|
| |
|
|
| This file is part of the OpenRGB project |
|
|
| SPDX-License-Identifier: GPL-2.0-or-later |
|
|
\*---------------------------------------------------------*/
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
class StringUtils
|
|
{
|
|
public:
|
|
static const char* wchar_to_char(const wchar_t* pwchar);
|
|
static std::string wchar_to_string(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);
|
|
static std::string u32int_to_hexString(unsigned int value);
|
|
static std::string normalize_hex_id(const std::string& id);
|
|
};
|