Lucene.Net
3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
|
Methods for manipulating strings. More...
Static Public Member Functions | |
static System.String | Intern (System.String s) |
Return the same string object for all equal strings | |
static int | BytesDifference (byte[] bytes1, int len1, byte[] bytes2, int len2) |
Compares two byte[] arrays, element by element, and returns the number of elements common to both arrays. | |
static int | StringDifference (System.String s1, System.String s2) |
Compares two strings, character by character, and returns the first position where the two strings differ from one another. | |
Static Public Attributes | |
static StringInterner | interner = new SimpleStringInterner(1024, 8) |
Expert: The StringInterner implementation used by Lucene. This shouldn't be changed to an incompatible implementation after other Lucene APIs have been used. | |
Methods for manipulating strings.
Definition at line 25 of file StringHelper.cs.
|
static |
Compares two byte[] arrays, element by element, and returns the number of elements common to both arrays.
bytes1 | The first byte[] to compare |
len1 | |
bytes2 | The second byte[] to compare |
len2 |
Definition at line 51 of file StringHelper.cs.
|
static |
Return the same string object for all equal strings
Definition at line 34 of file StringHelper.cs.
|
static |
Compares two strings, character by character, and returns the first position where the two strings differ from one another.
s1 | The first string to compare |
s2 | The second string to compare |
Definition at line 70 of file StringHelper.cs.
|
static |
Expert: The StringInterner implementation used by Lucene. This shouldn't be changed to an incompatible implementation after other Lucene APIs have been used.
Definition at line 31 of file StringHelper.cs.