![]() |
|
PhoenixFileParser
2.0.2
Set of tools to ease file parsing
|
Go to the source code of this file.
Functions | |
| bool | directory_replace_copyBinaryFile (const PPath &inputFile, const PPath &outputFile) |
| Copy a file byte for byte, with no text processing of any kind (safe for binary content). | |
| bool | directory_replace_isBinaryAsset (const PPath &file) |
| bool | directory_replace_placeholder (const PPath &outputDir, const PPath &inputConfigDir, const PMapString &mapReplacePlaceholder) |
| Replace placeholder in a directory and its content by respect to the given map of value for all place holder. | |
| bool | directory_replace_placeholderFile (const PPath &outputDir, const PPath &inputConfigDir, const PMapString &mapReplacePlaceholder) |
| Replace placeholder in a directory and its content by respect to the given map of value for all place holder (file only). | |
| bool directory_replace_copyBinaryFile | ( | const PPath & | inputFile, |
| const PPath & | outputFile ) |
Copy a file byte for byte, with no text processing of any kind (safe for binary content).
| inputFile | : source file |
| outputFile | : destination file |
Definition at line 44 of file directory_replace_placeholder.cpp.
Referenced by directory_replace_placeholderFile().
| bool directory_replace_isBinaryAsset | ( | const PPath & | file | ) |
Extensions of binary/image assets that must never go through text placeholder substitution : it is meaningless on such content (no XXXPlaceholderXXX token to substitute), unsafe (PPath::saveFileContent writes through a NUL-terminated C string, so binary content gets truncated at the first embedded '\0'), and prohibitively slow on large files (PString concatenation is not amortised, so replace() on a multi-megabyte blob is effectively quadratic).
| file | : file to be checked |
Definition at line 21 of file directory_replace_placeholder.cpp.
Referenced by directory_replace_placeholderFile().
| bool directory_replace_placeholder | ( | const PPath & | outputDir, |
| const PPath & | inputConfigDir, | ||
| const PMapString & | mapReplacePlaceholder ) |
Replace placeholder in a directory and its content by respect to the given map of value for all place holder.
| outputDir | : output directory |
| inputConfigDir | : input configuration directory |
| mapReplacePlaceholder | : map of placeholders and values to be replaced with |
Definition at line 85 of file directory_replace_placeholder.cpp.
References directory_replace_placeholder(), and directory_replace_placeholderFile().
Referenced by directory_replace_placeholder().
| bool directory_replace_placeholderFile | ( | const PPath & | outputDir, |
| const PPath & | inputConfigDir, | ||
| const PMapString & | mapReplacePlaceholder ) |
Replace placeholder in a directory and its content by respect to the given map of value for all place holder (file only).
| outputDir | : output directory |
| inputConfigDir | : input configuration directory |
| mapReplacePlaceholder | : map of placeholders and values to be replaced with |
Definition at line 59 of file directory_replace_placeholder.cpp.
References directory_replace_copyBinaryFile(), and directory_replace_isBinaryAsset().
Referenced by directory_replace_placeholder().