return ${EXIT_ERROR}
}
+file_to_log() {
+ local level="${1}"
+ assert isset level
+
+ local file="${2}"
+ assert file_exists "${file}"
+
+ local line
+ while read line; do
+ log "${level}" "${line}"
+ done < "${file}"
+}
+
make_directory() {
local path="${1}"
return ${EXIT_FALSE}
}
+contains_non_ascii_characters() {
+ local value="$@"
+
+ # Strip away all ASCII characters
+ local non_ascii="${value//[[:ascii:]]/}"
+
+ if isset non_ascii; then
+ return ${EXIT_TRUE}
+ fi
+
+ return ${EXIT_FALSE}
+}
+
string_match() {
local match=${1}
local string=${2}