mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-10-27 19:09:50 -05:00
* Current scene * Previous scene * Preview scene * Current transition * Date / time * Date / time with offset * Unix timestamp * Time since last scene change * Json array length * Set json field * Format number
37 lines
1.3 KiB
C++
37 lines
1.3 KiB
C++
#pragma once
|
|
#include "export-symbol-helper.hpp"
|
|
#include "regex-config.hpp"
|
|
|
|
#include <QString>
|
|
#include <string>
|
|
#include <utility>
|
|
#include <vector>
|
|
|
|
namespace advss {
|
|
|
|
EXPORT QString FormatJsonString(std::string);
|
|
EXPORT QString FormatJsonString(QString);
|
|
EXPORT bool MatchJson(const std::string &json1, const std::string &json2,
|
|
const RegexConfig ®ex);
|
|
EXPORT std::optional<std::string> GetJsonField(const std::string &json,
|
|
const std::string &id);
|
|
EXPORT std::optional<std::string> QueryJson(const std::string &json,
|
|
const std::string &query);
|
|
EXPORT std::optional<std::string> AccessJsonArrayIndex(const std::string &json,
|
|
const int index);
|
|
EXPORT std::optional<std::string>
|
|
ExtractSingleJsonArrayElement(const std::string &json);
|
|
EXPORT std::optional<int> GetJsonArrayLength(const std::string &json);
|
|
EXPORT std::optional<std::string> SetJsonField(const std::string &json,
|
|
const std::string &id,
|
|
const std::string &value);
|
|
|
|
EXPORT std::vector<std::pair<std::string, int>>
|
|
CollectDistinctJsonStringValues(const std::string &json);
|
|
EXPORT std::string ReplaceJsonStringValue(const std::string &json,
|
|
const std::string &oldValue,
|
|
const std::string &newValue);
|
|
EXPORT std::string GenerateImportPlaceholder();
|
|
|
|
} // namespace advss
|