Show / Hide Table of Contents

Class SourceCodeTokenizer

Inheritance
System.Object
SourceCodeTokenizer
Implements
ISourceCodeTokenizer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OfficeOpenXml.FormulaParsing.LexicalAnalysis
Assembly: EPPlus.dll
Syntax
public class SourceCodeTokenizer : ISourceCodeTokenizer

Constructors

SourceCodeTokenizer(IFunctionNameProvider, INameValueProvider, Boolean, Boolean)

Declaration
public SourceCodeTokenizer(IFunctionNameProvider functionRepository, INameValueProvider nameValueProvider, bool r1c1 = false, bool keepWhitespace = false)
Parameters
Type Name Description
IFunctionNameProvider functionRepository
INameValueProvider nameValueProvider
System.Boolean r1c1
System.Boolean keepWhitespace

Properties

Default

The default tokenizer. This tokenizer will remove and ignore whitespaces.

Declaration
public static ISourceCodeTokenizer Default { get; }
Property Value
Type Description
ISourceCodeTokenizer

R1C1

The tokenizer used for r1c1 format. This tokenizer will keep whitespaces and add them as tokens.

Declaration
public static ISourceCodeTokenizer R1C1 { get; }
Property Value
Type Description
ISourceCodeTokenizer

Methods

Tokenize(String)

Split the input string into tokens used by the formula parser

Declaration
public IList<Token> Tokenize(string input)
Parameters
Type Name Description
System.String input
Returns
Type Description
System.Collections.Generic.IList<Token>

Tokenize(String, String)

Declaration
public IList<Token> Tokenize(string input, string worksheet)
Parameters
Type Name Description
System.String input
System.String worksheet
Returns
Type Description
System.Collections.Generic.IList<Token>

Implements

ISourceCodeTokenizer
In This Article
Back to top Generated by DocFX