1# $NetBSD: varmod-to-title.mk,v 1.1 2024/07/01 21:02:26 sjg Exp $ 2# 3# Tests for the :tc variable modifier, which converts the expression value 4# to lowercase. 5# 6# TODO: What about non-ASCII characters? ISO-8859-1, UTF-8? 7 8.if ${:UUPPER:tt} != "Upper" 9. error 10.endif 11 12.if ${:Ulower:tt} != "Lower" 13. error 14.endif 15 16.if ${:UMixeD case.:tt} != "Mixed Case." 17. error 18.endif 19 20# The ':tt' modifier works on the whole string, without splitting it into 21# words. 22.if ${:Umultiple spaces:tt} != "Multiple Spaces" 23. error 24.endif 25 26# Note words only count if separated by spaces 27.if ${:Uthis&that or os/2:tt} != "This&that Or Os/2" 28. error 29.endif 30 31all: .PHONY 32