TokenizedStringFragments
Fragments of a concatenated string containing stringified Tokens.
Initializers
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.NewTokenizedStringFragments() TokenizedStringFragments
Name | Type | Description |
---|---|---|
Methods
Name | Description |
---|---|
AddIntrinsic |
No description. |
AddLiteral |
No description. |
AddToken |
No description. |
Join |
Combine the string fragments using the given joiner. |
MapTokens |
Apply a transformation function to all tokens in the string. |
AddIntrinsic
func AddIntrinsic(value interface{})
- Type: interface{}
AddLiteral
func AddLiteral(lit interface{})
- Type: interface{}
AddToken
func AddToken(token IResolvable)
- Type: IResolvable
Join
func Join(concat IFragmentConcatenator) interface{}
Combine the string fragments using the given joiner.
If there are any
- Type: IFragmentConcatenator
MapTokens
func MapTokens(mapper ITokenMapper) TokenizedStringFragments
Apply a transformation function to all tokens in the string.
- Type: ITokenMapper
Properties
Name | Type | Description |
---|---|---|
FirstValue |
interface{} |
No description. |
Length |
*f64 |
No description. |
Tokens |
*[]IResolvable |
Return all Tokens from this string. |
FirstToken |
IResolvable |
No description. |
FirstValue
Required
func FirstValue() interface{}
- Type: interface{}
Length
Required
func Length() *f64
- Type: *f64
Tokens
Required
func Tokens() *[]IResolvable
- Type: *[]IResolvable
Return all Tokens from this string.
FirstToken
Optional
func FirstToken() IResolvable
- Type: IResolvable