mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-23 23:37:48 -05:00
22 lines
845 B
C++
22 lines
845 B
C++
/*---------------------------------------------------------*\
|
|
| 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);
|
|
};
|