mirror of
https://codeberg.org/scip/tablizer.git
synced 2025-12-19 05:21:03 +01:00
added
This commit is contained in:
14
vendor/github.com/zclconf/go-cty/cty/ctystrings/normalize.go
generated
vendored
Normal file
14
vendor/github.com/zclconf/go-cty/cty/ctystrings/normalize.go
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
package ctystrings
|
||||
|
||||
import (
|
||||
"golang.org/x/text/unicode/norm"
|
||||
)
|
||||
|
||||
// Normalize applies NFC normalization to the given string, returning the
|
||||
// transformed string.
|
||||
//
|
||||
// This function achieves the same effect as wrapping a string in a value
|
||||
// using [cty.StringVal] and then unwrapping it again using [Value.AsString].
|
||||
func Normalize(str string) string {
|
||||
return norm.NFC.String(str)
|
||||
}
|
||||
Reference in New Issue
Block a user