// ⚡️ Fiber is an Express inspired web framework written in Go with ☕️
// 🤖 Github Repository: https://github.com/gofiber/fiber
// 📌 API Documentation: https://docs.gofiber.io

package utils

// ToLower converts ascii string to lower-case
func ( string) string {
	 := make([]byte, len())
	copy(, )
	for  := 0;  < len(); ++ {
		[] = toLowerTable[[]]
	}

	return UnsafeString()
}

// ToUpper converts ascii string to upper-case
func ( string) string {
	 := make([]byte, len())
	copy(, )
	for  := 0;  < len(); ++ {
		[] = toUpperTable[[]]
	}

	return UnsafeString()
}

// TrimLeft is the equivalent of strings.TrimLeft
func ( string,  byte) string {
	,  := len(), 0
	for  <  && [] ==  {
		++
	}
	return [:]
}

// Trim is the equivalent of strings.Trim
func ( string,  byte) string {
	,  := 0, len()-1
	for ;  <= ; ++ {
		if [] !=  {
			break
		}
	}
	for ;  < ; -- {
		if [] !=  {
			break
		}
	}

	return [ : +1]
}

// TrimRight is the equivalent of strings.TrimRight
func ( string,  byte) string {
	 := len()
	for  > 0 && [-1] ==  {
		--
	}
	return [:]
}

// EqualFold tests ascii strings for equality case-insensitively
func (,  string) bool {
	if len() != len() {
		return false
	}
	for  := len() - 1;  >= 0; -- {
		if toUpperTable[[]] != toUpperTable[[]] {
			return false
		}
	}
	return true
}