Line 1... |
Line 1... |
1 |
/*
|
1 |
/*
|
2 |
* Copyright (C) 2019 to 2021 by Andreas Theofilu <andreas@theosys.at>
|
2 |
* Copyright (C) 2019 to 2022 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 64... |
Line 64... |
64 |
std::string stripPath(const std::string& p, size_t idx);
|
64 |
std::string stripPath(const std::string& p, size_t idx);
|
65 |
std::string stripPath(const std::string& p, const std::string& s);
|
65 |
std::string stripPath(const std::string& p, const std::string& s);
|
66 |
bool createAllPath(std::string& path, bool cut=false);
|
66 |
bool createAllPath(std::string& path, bool cut=false);
|
67 |
bool drop(const std::string& path);
|
67 |
bool drop(const std::string& path);
|
68 |
std::string getEntryWithEnd(const std::string& end);
|
68 |
std::string getEntryWithEnd(const std::string& end);
|
69 |
std::string getEntryWithPart(const std::string& part);
|
69 |
std::string getEntryWithPart(const std::string& part, bool precice=true);
|
70 |
bool testDirectory(unsigned short att) { return (att & ATTR_DIRECTORY); }
|
70 |
bool testDirectory(unsigned short att) { return (att & ATTR_DIRECTORY); }
|
71 |
bool testText(unsigned short att) { return (att & ATTR_TEXT); }
|
71 |
bool testText(unsigned short att) { return (att & ATTR_TEXT); }
|
72 |
bool testGraphic(unsigned short att) { return (att & ATTR_GRAPHIC); }
|
72 |
bool testGraphic(unsigned short att) { return (att & ATTR_GRAPHIC); }
|
73 |
bool testSound(unsigned short att) { return (att & ATTR_SOUND); }
|
73 |
bool testSound(unsigned short att) { return (att & ATTR_SOUND); }
|
74 |
bool testLink(unsigned short att) { return (att & ATTR_LINK); }
|
74 |
bool testLink(unsigned short att) { return (att & ATTR_LINK); }
|