Skip to content

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{})

valueRequired

  • Type: interface{}

AddLiteral

func AddLiteral(lit interface{})

litRequired

  • Type: interface{}

AddToken

func AddToken(token IResolvable)

tokenRequired


Join

func Join(concat IFragmentConcatenator) interface{}

Combine the string fragments using the given joiner.

If there are any

concatRequired


MapTokens

func MapTokens(mapper ITokenMapper) TokenizedStringFragments

Apply a transformation function to all tokens in the string.

mapperRequired


Properties

Name Type Description
FirstValue interface{} No description.
Length *f64 No description.
Tokens *[]IResolvable Return all Tokens from this string.
FirstToken IResolvable No description.

FirstValueRequired

func FirstValue() interface{}
  • Type: interface{}

LengthRequired

func Length() *f64
  • Type: *f64

TokensRequired

func Tokens() *[]IResolvable

Return all Tokens from this string.


FirstTokenOptional

func FirstToken() IResolvable