Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
CaseInsensitiveStringTokenizer.cs
1using System;
2using System.Collections.Generic;
3using System.Threading.Tasks;
5
7{
12 {
17 {
18 }
19
25 public Grade Supports(Type Type)
26 {
27 if (Type == typeof(CaseInsensitiveString))
28 return Grade.Ok;
29 else
30 return Grade.NotAtAll;
31 }
32
38 public Task Tokenize(object Value, TokenizationProcess Process)
39 {
40 if (Value is CaseInsensitiveString s)
41 StringTokenizer.Tokenize(s.LowerCase, Process);
42
43 return Task.CompletedTask;
44 }
45
46 }
47}
Represents a case-insensitive string.
Task Tokenize(object Value, TokenizationProcess Process)
Tokenizes an object.
Grade Supports(Type Type)
How well the tokenizer can tokenize objects of type Type .
Task Tokenize(object Value, TokenizationProcess Process)
Tokenizes an object.
Contains information about a tokenization process.
Interface for full-text-search tokenizers
Definition: ITokenizer.cs:12
Grade
Grade enumeration
Definition: Grade.cs:7