1# Copyright: 2016 Masatake YAMATO 2# License: GPL-2 3 4CTAGS=$1 5 6${CTAGS} --quiet --options=NONE -o - \ 7 --kinds-java=f ./input.java 8 9${CTAGS} --quiet --options=NONE -o - \ 10 --pattern-length-limit=10 \ 11 --kinds-java=f ./input.java 12 13${CTAGS} --quiet --options=NONE -o - \ 14 --pattern-length-limit=0 \ 15 --kinds-java=f ./input.java 16 17for etags in '' '-e'; do 18 echo "--- multi-byte handling" $(test -n "$etags" && echo "(etags)") 19 20 # as the 7th byte is an inner byte, cutting at 6 and 7 should yield the same result 21 ${CTAGS} --quiet --options=NONE $etags -o - \ 22 --pattern-length-limit=6 \ 23 --kinds-python=v ./input-utf8.py 24 ${CTAGS} --quiet --options=NONE $etags -o - \ 25 --pattern-length-limit=7 \ 26 --kinds-python=v ./input-utf8.py 27 28 ${CTAGS} --quiet --options=NONE $etags -o - \ 29 --pattern-length-limit=4 \ 30 --kinds-python=v ./input-iso-8859-1.py 31done 32 33exit $? 34