Subversion Repositories tpanel

Rev

Rev 446 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 446 Rev 474
Line 1... Line 1...
1
/*
1
/*
2
 * Copyright (C) 2020, 2021 by Andreas Theofilu <andreas@theosys.at>
2
 * Copyright (C) 2020 to 2024 by Andreas Theofilu <andreas@theosys.at>
3
 *
3
 *
4
 * This program is free software; you can redistribute it and/or modify
4
 * This program is free software; you can redistribute it and/or modify
5
 * it under the terms of the GNU General Public License as published by
5
 * it under the terms of the GNU General Public License as published by
6
 * the Free Software Foundation; either version 3 of the License, or
6
 * the Free Software Foundation; either version 3 of the License, or
7
 * (at your option) any later version.
7
 * (at your option) any later version.
Line 113... Line 113...
113
std::string fillString(int c, int len);
113
std::string fillString(int c, int len);
114
bool isUTF8(const std::string& str);
114
bool isUTF8(const std::string& str);
115
size_t utf8Strlen(const std::string& str);
115
size_t utf8Strlen(const std::string& str);
116
uint16_t getUint16(const unsigned char *p, bool big_endian=false);
116
uint16_t getUint16(const unsigned char *p, bool big_endian=false);
117
uint32_t getUint32(const unsigned char *p, bool big_endian=false);
117
uint32_t getUint32(const unsigned char *p, bool big_endian=false);
-
 
118
unsigned char *uint16ToBytes(uint16_t num, unsigned char *bytes=nullptr);
-
 
119
unsigned char *uint32ToBytes(uint16_t num, unsigned char *bytes=nullptr);
118
std::string UnicodeToUTF8(const std::wstring& ws);
120
std::string UnicodeToUTF8(const std::wstring& ws);
119
bool endsWith (const std::string &src, const std::string &end);
121
bool endsWith (const std::string &src, const std::string &end);
120
bool startsWith (const std::string &src, const std::string &start);
122
bool startsWith (const std::string &src, const std::string &start);
121
std::string dirName (const std::string &path);
123
std::string dirName (const std::string &path);
122
std::string baseName (const std::string &path);
124
std::string baseName (const std::string &path);