DeskUp 0.3
Loading...
Searching...
No Matches
backend_utils.h File Reference

Defines basic tools to easen the interaction with the Desk Up backend. More...

Include dependency graph for backend_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::string toLowerStr (const std::string &s)
 A function to convert a string to its lowercase version.
std::string normalizePathLower (const std::string &p)
 A function to convert a generic path to a windows path using backslash path and later convert it to lowercase.
std::wstring UTF8ToWide (const std::string &s)
 A function to convert a normal string into a wide one.

Detailed Description

Defines basic tools to easen the interaction with the Desk Up backend.

This file is part of DeskUp

Author
Nicolas Serrano Garcia serra.nosp@m.noga.nosp@m.rcian.nosp@m.icol.nosp@m.as@gm.nosp@m.ail..nosp@m.com
Date
2025

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Function Documentation

◆ normalizePathLower()

std::string normalizePathLower ( const std::string & p)

A function to convert a generic path to a windows path using backslash path and later convert it to lowercase.

Note that it does not alter the original string.

Parameters
sthe string path to alter
Returns
std::string representing the altered path
Version
0.2.0
Date
2025

◆ toLowerStr()

std::string toLowerStr ( const std::string & s)

A function to convert a string to its lowercase version.

Note that it does not alter the original string

Parameters
sthe string to convert to lowercase
Returns
std::string representing the lowercase version
Version
0.2.0
Date
2025

◆ UTF8ToWide()

std::wstring UTF8ToWide ( const std::string & s)

A function to convert a normal string into a wide one.

Note that the original string doesn't get altered

Parameters
sthe string intended to convert
Returns
std::wstring representing the wide string
Version
0.2.0
Date
2025