MYNT-EYE-S-SDK/scripts/common/string.sh

8 lines
216 B
Bash
Raw Normal View History

2018-03-30 11:28:23 +03:00
#!/usr/bin/env bash
[ -n "${_STRING_SH_}" ] && return || readonly _STRING_SH_=1
[ -n "${_VERBOSE_}" ] && echo "-- INCLUDE: string.sh"
_startswith() { [ "$1" != "${1#$2}" ]; }
_endswith() { [ "$1" != "${1%$2}" ]; }