20 namespace Lucene.Net.Util
34 public static System.String Intern(System.String s)
36 return interner.Intern(s);
51 public static int BytesDifference(byte[] bytes1,
int len1, byte[] bytes2,
int len2)
53 int len = len1 < len2?len1:len2;
54 for (
int i = 0; i < len; i++)
55 if (bytes1[i] != bytes2[i])
70 public static int StringDifference(System.String s1, System.String s2)
74 int len = len1 < len2?len1:len2;
75 for (
int i = 0; i < len; i++)