Syntalos::edl
Syntalos::edl
Functions
| Name | |
|---|---|
| std::string | createRandomString(size_t len) Create a random alphanumeric string. |
| toml::date_time | toToml(const EdlDateTime & dt) Convert an EdlDateTime to a TOML date-time with local UTC offset. |
| toml::table | toTomlTable(const std::map< std::string, MetaValue > & attrs) Convert a MetaValue map to a TOML table. |
| void | naturalNumListSort(std::vector< std::string > & list) Sort a vector of strings, with any numbers sorted numerically / “naturally” for humans. |
| std::string | guessContentType(const fs::path & filePath, bool onlyCertain =true) Guess the content type (MIME type) of a file based on its contents or extension. |
| toml::array | metaArrayToToml(const MetaArray & arr) |
Functions Documentation
function createRandomString
std::string createRandomString(
size_t len
)Create a random alphanumeric string.
function toToml
toml::date_time toToml(
const EdlDateTime & dt
)Convert an EdlDateTime to a TOML date-time with local UTC offset.
function toTomlTable
toml::table toTomlTable(
const std::map< std::string, MetaValue > & attrs
)Convert a MetaValue map to a TOML table.
function naturalNumListSort
void naturalNumListSort(
std::vector< std::string > & list
)Sort a vector of strings, with any numbers sorted numerically / “naturally” for humans.
This sorts text alphabetically, but treats sequences of digits as numbers. For example, “file2” will come before “file10”.
function guessContentType
std::string guessContentType(
const fs::path & filePath,
bool onlyCertain =true
)Guess the content type (MIME type) of a file based on its contents or extension.
Parameters:
- filePath The path of the file for which the content type is to be determined.
- onlyCertain If true, the function returns an empty string when the content type guess is uncertain.
Return: The guessed content type as a string, or an empty string if uncertain and onlyCertain is set to true.
This function attempts to determine the content type of a file. If the result is uncertain, it can optionally return an empty string depending on the onlyCertain parameter.
function metaArrayToToml
static toml::array metaArrayToToml(
const MetaArray & arr
)Updated on 2026-04-24 at 06:25:18 +0000