Searched defs:utf8 (Results 1 - 10 of 10) sorted by relevance

/bind-9.11.3/contrib/idn/idnkit-1.0-src/lib/
H A Dconverter.c901 char *utf8 = NULL; local
919 utf8 = (char *)malloc(utf8size);
920 if (utf8 == NULL) {
926 r = idn_ucs4_ucs4toutf8(from, utf8, utf8size);
931 new_utf8 = (char *)realloc(utf8, utf8size);
936 utf8 = new_utf8;
959 inleft = strlen(utf8);
960 inbuf = utf8;
1009 free(utf8);
1018 char *utf8 local
[all...]
H A Ducs4.c198 idn_ucs4_utf8toucs4(const char *utf8, unsigned long *ucs4, size_t tolen) { argument
199 const unsigned char *utf8p = (const unsigned char *)utf8;
207 TRACE(("idn_ucs4_utf8toucs4(utf8=\"%s\", tolen=%d)\n",
208 idn__debug_xstring(utf8, 50), (int)tolen));
295 idn_ucs4_ucs4toutf8(const unsigned long *ucs4, char *utf8, size_t tolen) { argument
296 unsigned char *utf8p = (unsigned char *)utf8;
361 TRACE(("idn_ucs4_ucs4toutf8(): success (utf8=\"%s\")\n",
362 idn__debug_xstring(utf8, 50)));
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/suggest/fst/
H A DBytesRefSorter.java40 void add(BytesRef utf8) throws IOException, IllegalStateException; argument
H A DExternalRefSorter.java50 public void add(BytesRef utf8) throws IOException { argument
52 writer.write(utf8);
H A DFSTCompletion.java45 public final BytesRef utf8; field in class:FSTCompletion.Completion
49 this.utf8 = BytesRef.deepCopyOf(key);
55 return utf8.utf8ToString() + "/" + bucket;
60 return this.utf8.compareTo(o.utf8);
160 * @param utf8
161 * The sequence of utf8 bytes to follow.
167 int rootArcIndex, BytesRef utf8) {
176 if (descendWithPrefix(arc, utf8)) {
307 if (key.equals(list.get(i).utf8)) {
166 getExactMatchStartingFromRootArc( int rootArcIndex, BytesRef utf8) argument
330 descendWithPrefix(Arc<Object> arc, BytesRef utf8) argument
[all...]
H A DFSTCompletionBuilder.java191 * @param utf8
192 * The suggestion (utf8 representation) to be added. The content is
200 public void add(BytesRef utf8, int bucket) throws IOException { argument
206 if (scratch.bytes.length < utf8.length + 1) {
207 scratch.grow(utf8.length + 10);
212 scratch.append(utf8);
H A DInMemorySorter.java41 public void add(BytesRef utf8) { argument
43 buffer.append(utf8);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DFormatPostingsDocsWriter.java108 final UnicodeUtil.UTF8Result utf8 = new UnicodeUtil.UTF8Result(); field in class:FormatPostingsDocsWriter
120 UnicodeUtil.UTF16toUTF8(parent.currentTerm, parent.currentTermStart, utf8);
124 utf8.result,
125 utf8.length,
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/
H A DUnicodeUtil.java483 * in utf8, re-using the results from the previous call
485 public static void UTF8toUTF16(final byte[] utf8, final int offset, final int length, final UTF16Result result) { argument
509 final int b = utf8[upto]&0xff;
518 ch = ((b&0x1f)<<6) + (utf8[upto]&0x3f);
521 ch = ((b&0xf)<<12) + ((utf8[upto]&0x3f)<<6) + (utf8[upto+1]&0x3f);
526 ch = ((b&0x7)<<18) + ((utf8[upto]&0x3f)<<12) + ((utf8[upto+1]&0x3f)<<6) + (utf8[upto+2]&0x3f);
715 public static void UTF8toUTF16(byte[] utf8, in argument
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/response/
H A DPHPSerializedResponseWriter.java61 final UnicodeUtil.UTF8Result utf8; field in class:PHPSerializedWriter
65 this.utf8 = new UnicodeUtil.UTF8Result();
375 UnicodeUtil.UTF16toUTF8(val, 0, val.length(), utf8);
376 int nBytes = utf8.length;

Completed in 273 milliseconds