MYNT-EYE-S-SDK/scripts/common/string.sh
2018-03-30 16:28:23 +08:00

8 lines
216 B
Bash

#!/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}" ]; }