Allow setting every array element in replacements

This commit is contained in:
koba1t
2022-01-27 06:17:23 +09:00
parent c65ef489ca
commit 26b9af0379
3 changed files with 44 additions and 0 deletions

View File

@@ -796,6 +796,12 @@ func SplitIndexNameValue(p string) (string, string, error) {
return parts[0], parts[1], nil
}
// IsMatchEveryIndex returns true if p is matching every elements.
// e.g. "*"
func IsMatchEveryIndex(p string) bool {
return p == "*"
}
// IncrementFieldIndex increments i to point to the next field name element in
// a slice of Contents.
func IncrementFieldIndex(i int) int {