UAInspector v0.19.0 UAInspector.Downloader.ShortCodeMapConverter View Source

Utility module to extract short code maps from php sources into yaml files.

Link to this section Summary

Functions

Extracts the map defined with variable name var from the file file

Writes yaml file for a list of short code mappings

Link to this section Functions

Link to this function

extract(var, type, file) View Source
extract(String.t(), :hash | :hash_with_list | :list, String.t()) :: list()

Extracts the map defined with variable name var from the file file.

Returns the complete list of all mapping tuples.

Link to this function

write_yaml(map, atom, file) View Source
write_yaml(list(), :hash | :hash_with_list | :list, String.t()) :: :ok

Writes yaml file for a list of short code mappings.