mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update github.com/hashicorp/hcl/v2 to v2.19.1
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
26
vendor/github.com/zclconf/go-cty/cty/ctystrings/doc.go
generated
vendored
Normal file
26
vendor/github.com/zclconf/go-cty/cty/ctystrings/doc.go
generated
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
// Package ctystrings is a collection of string manipulation utilities which
|
||||
// intend to help application developers implement string-manipulation
|
||||
// functionality in a way that respects the cty model of strings, even when
|
||||
// they are working in the realm of Go strings.
|
||||
//
|
||||
// cty strings are, internally, NFC-normalized as defined in Unicode Standard
|
||||
// Annex #15 and encoded as UTF-8.
|
||||
//
|
||||
// When working with [cty.Value] of string type cty manages this
|
||||
// automatically as an implementation detail, but when applications call
|
||||
// [Value.AsString] they will receive a value that has been subjected to that
|
||||
// normalization, and so may need to take that normalization into account when
|
||||
// manipulating the resulting string or comparing it with other Go strings
|
||||
// that did not originate in a [cty.Value].
|
||||
//
|
||||
// Although the core representation of [cty.String] only considers whole
|
||||
// strings, it's also conventional in other locations such as the standard
|
||||
// library functions to consider strings as being sequences of grapheme
|
||||
// clusters as defined by Unicode Standard Annex #29, which adds further
|
||||
// rules about combining multiple consecutive codepoints together into a
|
||||
// single user-percieved character. Functions that work with substrings should
|
||||
// always use grapheme clusters as their smallest unit of splitting strings,
|
||||
// and never break strings in the middle of a grapheme cluster. The functions
|
||||
// in this package respect that convention unless otherwise stated in their
|
||||
// documentation.
|
||||
package ctystrings
|
Reference in New Issue
Block a user