Share via


ValueTokenizer Class

Definition

ValueTokenizer will keep a list of Tokens and Values that correspond to those tokens. This class is used to tokenize / untokenize a given string.

public ref class ValueTokenizer
[Windows::Foundation::Metadata::WebHostHidden]
class ValueTokenizer
public class ValueTokenizer
type ValueTokenizer = class
Public Class ValueTokenizer
Inheritance
ValueTokenizer

Constructors

ValueTokenizer()

Initializes a new instance of the ValueTokenizer class.

Properties

ReplaceEnvironmentVariables

Indicates if environment variables will be replaced when untokenizing a string. To be replaced, environment variables must be in the format: %variable%

Methods

AddToken(String, String)

Add a token and its value to our list.

TokenizeFrontValue(Object)

If the list contains a value that is at the front of the parameter string, it will replace it with its corresponding token.

UntokenizeValue(Object)

If the list contains a token that is part of the parameter string, it will replace it with its corresponding value. Optionally, replaces environment variables found in the parameter string.

Applies to