Namespace Azos.Text
Classes
CompilingExpressionEvaluator<TContext, TResult, TArg>
Implements an evaluator that compiles all expressions represented by instances of this class in a certain scope into dynamic assemblies. Every unique scope name creates a separate assembly. The compilation of scope is triggered either by a call to Compile() or first attempt to call Evaluate() on any instance within a scope. Once a scope has been compiled, no further allocations in this scoped are allowed, this is because CLR does not allow to unload assemblies dynamically. Within an expression context is passed as "ctx" and argument as "arg". This class is thread-safe.
DataEntryUtils
Provides misc data-entry parsing routines
Evaluator
Evaluator.Node
Node class represents evaluation b-tree element
NaturalTextGenerator
Generates human-readable English text for tests
SealedString.Scope
Represents a scope of a SealedString creation that tracks the existing strings. Use Seal(string) to get an existing string or create a new one. Do not persist the instance of Scope for a long time as it accumulates references (string keys) that pressure the GC. This class is used in batched that create many sealed strings. Once those strings rae created the scope can be released.
Stripper
Strips JavaScript content off comments and whitespaces
TokenParser
TokenParser class translates tokenized content string to an array list of parsed tokens with attributes
TokenParser.Token
Token class holds parsed token info along with an array of attributes
TokenParser.Token.Attribute
Attribute class represents token's attribute
Utils
Structs
SealedString
Represents an immutable string data that is stored in an efficient way that relieves the GC pressure. The string can not be changed or deleted. Once created it stays as-is until the process is terminated. This structure is used to store much dictionary data (100s of millions of strings) in the process without causing GC overload. Note: The default .ctor DOES NOT check whether the same string is already present in memory. Use SealedString.Scope to store unique strings only (avoid the repetitions). This struct is THREAD SAFE and NOT SERIALIZABLE.
Enums
CharCodes
Declares common char codes
Delegates
IdentifierLookup
Evaluator class performs math and logical expression parsing and evaluation without allocating .NET compilers