Line 1... |
Line 1... |
1 |
/*
|
1 |
/*
|
2 |
* Copyright (C) 2020 by Andreas Theofilu <andreas@theosys.at>
|
2 |
* Copyright (C) 2020, 2021 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 50... |
Line 50... |
50 |
|
50 |
|
51 |
sk_sp<SkTypeface> MakeResourceAsTypeface(const char* resource, int ttcIndex = 0);
|
51 |
sk_sp<SkTypeface> MakeResourceAsTypeface(const char* resource, int ttcIndex = 0);
|
52 |
|
52 |
|
53 |
sk_sp<SkData> readImage(const std::string& fname);
|
53 |
sk_sp<SkData> readImage(const std::string& fname);
|
54 |
|
54 |
|
- |
|
55 |
std::string toLower(std::string& str);
|
- |
|
56 |
std::string toUpper(std::string& str);
|
55 |
std::vector<std::string> StrSplit(const std::string& str, const std::string& seps, const bool trimEmpty=false);
|
57 |
std::vector<std::string> StrSplit(const std::string& str, const std::string& seps, const bool trimEmpty=false);
|
56 |
std::string UTF8ToCp1250(const std::string& str);
|
58 |
std::string UTF8ToCp1250(const std::string& str);
|
57 |
std::string cp1250ToUTF8(const std::string& str);
|
59 |
std::string cp1250ToUTF8(const std::string& str);
|
58 |
std::string latin1ToUTF8(const std::string& str);
|
60 |
std::string latin1ToUTF8(const std::string& str);
|
59 |
|
61 |
|
- |
|
62 |
void *renew(void *mem, size_t old_size, size_t new_size);
|
- |
|
63 |
|
60 |
#endif // __TRESOURCES_H__
|
64 |
#endif // __TRESOURCES_H__
|