Home
last modified time | relevance | path

Searched refs:text (Results 1 – 25 of 1092) sorted by relevance

12345678910>>...44

/external/ppp/pppd/plugins/pppoatm/
Dtext2atm.c20 static int try_pvc(const char *text,struct sockaddr_atmpvc *addr,int flags) in try_pvc() argument
28 if (!*text) return FATAL; /* empty or ends with a dot */ in try_pvc()
30 if (isdigit(*text)) { in try_pvc()
31 if (*text == '0' && isdigit(text[1])) return TRY_OTHER; in try_pvc()
35 part[i] = part[i]*10+*text++-'0'; in try_pvc()
37 while (isdigit(*text)); in try_pvc()
39 if (!*text) break; in try_pvc()
40 if (*text++ != '.') return TRY_OTHER; /* non-PVC character */ in try_pvc()
43 if (*text == '*') { in try_pvc()
48 if (*text != '?') return TRY_OTHER; /* invalid character */ in try_pvc()
[all …]
Dtext2qos.c25 int __t2q_get_rate(const char **text,int up) in __t2q_get_rate() argument
33 if (!strncmp(*text,"max",3)) { in __t2q_get_rate()
34 *text += 3; in __t2q_get_rate()
37 rate = strtoul(*text,&end,10); in __t2q_get_rate()
75 *text = end; in __t2q_get_rate()
80 static int params(const char **text,struct atm_trafprm *a, in params() argument
86 if (*(*text)++ != ':') return -1; in params()
88 if (!**text) return -1; in params()
89 switch (fetch(text,"max_pcr=","pcr=","min_pcr=","max_sdu=","sdu=", in params()
92 if ((value = __t2q_get_rate(text,0)) == RATE_ERROR) return -1; in params()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/stdlib/
DSDL_string.c33 static size_t SDL_ScanLong(const char *text, int radix, long *valuep) in SDL_ScanLong() argument
35 const char *textstart = text; in SDL_ScanLong()
39 if ( *text == '-' ) { in SDL_ScanLong()
41 ++text; in SDL_ScanLong()
43 if ( radix == 16 && SDL_strncmp(text, "0x", 2) == 0 ) { in SDL_ScanLong()
44 text += 2; in SDL_ScanLong()
48 if ( SDL_isdigit((unsigned char) *text) ) { in SDL_ScanLong()
49 v = *text - '0'; in SDL_ScanLong()
50 } else if ( radix == 16 && SDL_isupperhex(*text) ) { in SDL_ScanLong()
51 v = 10 + (*text - 'A'); in SDL_ScanLong()
[all …]
/external/expat/tests/
Druntests.c69 _expect_failure(char *text, enum XML_Error errorCode, char *errorMessage, in _expect_failure() argument
72 if (XML_Parse(parser, text, strlen(text), XML_TRUE) == XML_STATUS_OK) in _expect_failure()
80 #define expect_failure(text, errorCode, errorMessage) \ argument
81 _expect_failure((text), (errorCode), (errorMessage), \
155 char text[] = "<doc>\0</doc>"; in START_TEST() local
158 if (XML_Parse(parser, text, sizeof(text) - 1, XML_TRUE) == XML_STATUS_OK) in START_TEST()
178 char *text = "\357\273\277<e/>"; in START_TEST() local
180 if (XML_Parse(parser, text, strlen(text), XML_TRUE) == XML_STATUS_ERROR) in START_TEST()
187 char text[] = "\376\377\0<\0e\0/\0>"; in START_TEST() local
189 if (XML_Parse(parser, text, sizeof(text)-1, XML_TRUE) == XML_STATUS_ERROR) in START_TEST()
[all …]
/external/icu4c/common/
Ddictbe.cpp44 DictionaryBreakEngine::findBreaks( UText *text, in findBreaks() argument
53 int32_t start = (int32_t)utext_getNativeIndex(text); in findBreaks()
57 UChar32 c = utext_current32(text); in findBreaks()
60 while((current = (int32_t)utext_getNativeIndex(text)) > startPos && isDict) { in findBreaks()
61 c = utext_previous32(text); in findBreaks()
68 while((current = (int32_t)utext_getNativeIndex(text)) < endPos && fSet.contains(c)) { in findBreaks()
69 utext_next32(text); // TODO: recast loop for postincrement in findBreaks()
70 c = utext_current32(text); in findBreaks()
76 result = divideUpDictionaryRange(text, rangeStart, rangeEnd, foundBreaks); in findBreaks()
77 utext_setNativeIndex(text, current); in findBreaks()
[all …]
Dschriter.cpp25 text() in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
32 text(textStr) in StringCharacterIterator()
35 UCharCharacterIterator::text = this->text.fArray; in StringCharacterIterator()
41 text(textStr) in StringCharacterIterator()
44 UCharCharacterIterator::text = this->text.fArray; in StringCharacterIterator()
52 text(textStr) in StringCharacterIterator()
55 UCharCharacterIterator::text = this->text.fArray; in StringCharacterIterator()
60 text(that.text) in StringCharacterIterator()
63 UCharCharacterIterator::text = this->text.fArray; in StringCharacterIterator()
72 text = that.text; in operator =()
[all …]
Duchriter.cpp18 text(0) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
26 text(textPtr) in UCharCharacterIterator()
34 text(textPtr) in UCharCharacterIterator()
44 text(textPtr) in UCharCharacterIterator()
50 text(that.text) in UCharCharacterIterator()
57 text = that.text; in operator =()
76 return text == realThat.text in operator ==()
85 return uhash_hashUCharsN(text, textLength) ^ pos ^ begin ^ end; in hashCode()
97 return text[pos]; in first()
107 return text[pos++]; in firstPostInc()
[all …]
Dnormlzr.cpp59 init(((CharacterIterator *)(copy.text->context))->clone()); in Normalizer()
68 text=(UCharIterator *)uprv_malloc(sizeof(UCharIterator)); in init()
69 if(text!=NULL) { in init()
71 uiter_setCharacterIterator(text, iter); in init()
74 uiter_setCharacterIterator(text, new UCharCharacterIterator(&_NUL, 0)); in init()
83 if(text!=NULL) { in ~Normalizer()
84 delete (CharacterIterator *)text->context; in ~Normalizer()
85 uprv_free(text); in ~Normalizer()
104 …return ((CharacterIterator *)(text->context))->hashCode() + fUMode + fOptions + buffer.hashCode() … in hashCode()
113 *((CharacterIterator *)(text->context))==*((CharacterIterator *)(that.text->context)) && in operator ==()
[all …]
/external/clearsilver/util/
Dwildmat.c59 DoMatch(register const char *text, register const char *p) in DoMatch() argument
65 for ( ; *p; text++, p++) { in DoMatch()
66 if (*text == '\0' && *p != '*') in DoMatch()
74 if (*text != *p) in DoMatch()
87 while (*text) in DoMatch()
88 if ((matched = DoMatch(text++, p)) != FALSE) in DoMatch()
98 if (*++p == *text) in DoMatch()
103 ? *text <= *++p && *text >= last : *text == *p) in DoMatch()
112 if (*text == '/') in DoMatch()
115 return *text == '\0'; in DoMatch()
[all …]
/external/skia/src/views/
DSkTextBox.cpp28 static size_t linebreak(const char text[], const char stop[], const SkPaint& paint, SkScalar margin) in linebreak() argument
30 const char* start = text; in linebreak()
38 const char* word_start = text; in linebreak()
41 while (text < stop) in linebreak()
43 const char* prevText = text; in linebreak()
44 SkUnichar uni = SkUTF8_NextUnichar(&text); in linebreak()
57 while (text < stop && is_ws(SkUTF8_ToUnichar(text))) in linebreak()
58 text += SkUTF8_CountUTF8Bytes(text); in linebreak()
65 text = prevText; in linebreak()
68 text = word_start; in linebreak()
[all …]
/external/libpng/contrib/gregbook/
Dwritepng.c178 png_text text[6]; in writepng_init() local
182 text[num_text].compression = PNG_TEXT_COMPRESSION_NONE; in writepng_init()
183 text[num_text].key = "Title"; in writepng_init()
184 text[num_text].text = mainprog_ptr->title; in writepng_init()
188 text[num_text].compression = PNG_TEXT_COMPRESSION_NONE; in writepng_init()
189 text[num_text].key = "Author"; in writepng_init()
190 text[num_text].text = mainprog_ptr->author; in writepng_init()
194 text[num_text].compression = PNG_TEXT_COMPRESSION_NONE; in writepng_init()
195 text[num_text].key = "Description"; in writepng_init()
196 text[num_text].text = mainprog_ptr->desc; in writepng_init()
[all …]
/external/webkit/WebCore/css/
DCSSBorderImageValue.cpp40 String text(m_image->cssText()); in cssText() local
41 text += " "; in cssText()
44 text += m_imageSliceRect->top()->cssText(); in cssText()
45 text += " "; in cssText()
46 text += m_imageSliceRect->right()->cssText(); in cssText()
47 text += " "; in cssText()
48 text += m_imageSliceRect->bottom()->cssText(); in cssText()
49 text += " "; in cssText()
50 text += m_imageSliceRect->left()->cssText(); in cssText()
53 text += " "; in cssText()
[all …]
DShadowValue.cpp44 String text(""); in cssText() local
47 text += color->cssText(); in cssText()
49 if (!text.isEmpty()) in cssText()
50 text += " "; in cssText()
51 text += x->cssText(); in cssText()
54 if (!text.isEmpty()) in cssText()
55 text += " "; in cssText()
56 text += y->cssText(); in cssText()
59 if (!text.isEmpty()) in cssText()
60 text += " "; in cssText()
[all …]
DCSSTimingFunctionValue.cpp35 String text("cubic-bezier("); in cssText() local
36 text += String::number(m_x1); in cssText()
37 text += ", "; in cssText()
38 text += String::number(m_y1); in cssText()
39 text += ", "; in cssText()
40 text += String::number(m_x2); in cssText()
41 text += ", "; in cssText()
42 text += String::number(m_y2); in cssText()
43 text += ")"; in cssText()
44 return text; in cssText()
DCSSPropertyNames.in112 text-align
113 text-decoration
114 text-indent
115 text-line-through
116 text-line-through-color
117 text-line-through-mode
118 text-line-through-style
119 text-line-through-width
120 text-overflow
121 text-overline
[all …]
/external/skia/src/core/
DSkPaint.cpp344 const char* text = (const char*)textData; in textToGlyphs() local
345 const char* stop = text + byteLength; in textToGlyphs()
350 while (text < stop) { in textToGlyphs()
351 *gptr++ = cache->unicharToGlyph(SkUTF8_NextUnichar(&text)); in textToGlyphs()
355 const uint16_t* text16 = (const uint16_t*)text; in textToGlyphs()
370 static const SkGlyph& sk_getMetrics_utf8_next(SkGlyphCache* cache, const char** text) in sk_getMetrics_utf8_next() argument
373 SkASSERT(text != NULL); in sk_getMetrics_utf8_next()
375 return cache->getUnicharMetrics(SkUTF8_NextUnichar(text)); in sk_getMetrics_utf8_next()
378 static const SkGlyph& sk_getMetrics_utf8_prev(SkGlyphCache* cache, const char** text) in sk_getMetrics_utf8_prev() argument
381 SkASSERT(text != NULL); in sk_getMetrics_utf8_prev()
[all …]
DSkString.cpp135 SkString::Rec* SkString::AllocRec(const char text[], U16CPU len) in AllocRec() argument
147 if (text) in AllocRec()
148 memcpy(rec->data(), text, len); in AllocRec()
202 SkString::SkString(const char text[]) in SkString() argument
204 size_t len = text ? strlen(text) : 0; in SkString()
206 fRec = AllocRec(text, (U16CPU)len); in SkString()
212 SkString::SkString(const char text[], size_t len) in SkString() argument
214 fRec = AllocRec(text, (U16CPU)len); in SkString()
247 bool SkString::equals(const char text[]) const in equals()
249 return this->equals(text, text ? strlen(text) : 0); in equals()
[all …]
/external/icu4c/test/intltest/
Dsrchtest.cpp200 char * StringSearchTest::toCharString(const UnicodeString &text) in toCharString() argument
205 int length = text.length(); in toCharString()
208 UChar ch = text[count]; in toCharString()
347 u_unescape(search->text, temp, 128); in assertEqual()
348 UnicodeString text; in assertEqual() local
349 text.setTo(temp); in assertEqual()
356 breaker->setText(text); in assertEqual()
360 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator, in assertEqual()
405 u_unescape(search->text, temp, 128); in assertCanonicalEqual()
406 UnicodeString text; in assertCanonicalEqual() local
[all …]
Dcitrtest.cpp25 text = textStr; in SCharacterIterator()
37 text = newText; in setText()
41 text.extract(0,text.length(),result); in getText()
60 virtual UChar nextPostInc(void){ return text.charAt(pos++);} in nextPostInc()
61 virtual UChar32 next32PostInc(void){return text.char32At(pos++);} in next32PostInc()
103 UTF_FWD_N(text, pos, end, delta); in move32()
108 UTF_FWD_N(text, pos, end, delta); in move32()
110 UTF_BACK_N(text, begin, pos, -delta); in move32()
116 UTF_BACK_N(text, begin, pos, -delta); in move32()
128 text = that.text; in operator =()
[all …]
/external/icu4c/test/cintltst/
Dusrchtst.c200 const UChar text[] = {0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67}; in TestOpenClose() local
203 text, 6, &status); in TestOpenClose()
229 result = usearch_open(pattern, 3, text, 6, NULL, NULL, &status); in TestOpenClose()
234 result = usearch_openFromCollator(pattern, 3, text, 6, NULL, NULL, in TestOpenClose()
241 result = usearch_open(pattern, 3, text, 6, "en_US", NULL, &status); in TestOpenClose()
250 result = usearch_openFromCollator(pattern, 3, text, 6, EN_US_, NULL, in TestOpenClose()
263 result = usearch_open(pattern, 3, text, 6, "en_US", breakiter, &status); in TestOpenClose()
271 result = usearch_openFromCollator(pattern, 3, text, 6, EN_US_, breakiter, in TestOpenClose()
288 const UChar text[] = {0x61, 0x62, 0x63, 0x64, 0x65, 0x66}; in TestInitialization() local
296 result = usearch_openFromCollator(pattern, 2, text, 3, EN_US_, NULL, in TestInitialization()
[all …]
/external/srec/portable/src/
DLCHAR.c26 ESR_ReturnCode lstrtrim(LCHAR* text) in lstrtrim() argument
30 len = LSTRLEN(text); in lstrtrim()
33 for (beginning = 0; beginning < len && LISSPACE(text[beginning]); ++beginning); in lstrtrim()
35 for (ending = len - 1; ending > beginning && LISSPACE(text[ending]); --ending); in lstrtrim()
38 LMEMMOVE(text, text + beginning, ending - beginning + 1); in lstrtrim()
39 text[ending-beginning+1] = '\0'; in lstrtrim()
67 ESR_ReturnCode lstrreplace(LCHAR* text, const LCHAR source, const LCHAR target) in lstrreplace() argument
73 index = LSTRCHR(text, source); in lstrreplace()
81 ESR_ReturnCode lstrtoi(const LCHAR* text, int* result, int base) in lstrtoi() argument
87 *result = LSTRTOL(text, &endPtr, base); in lstrtoi()
[all …]
/external/webkit/WebCore/page/gtk/
DAccessibilityObjectWrapperAtk.cpp75 static AccessibilityObject* core(AtkText* text) in core() argument
77 return core(ATK_OBJECT(text)); in core()
80 static AccessibilityObject* core(AtkEditableText* text) in core() argument
82 return core(ATK_OBJECT(text)); in core()
284 static gchar* webkit_accessible_text_get_text(AtkText* text, gint start_offset, gint end_offset) in webkit_accessible_text_get_text() argument
286 …String ret = core(text)->doAXStringForRange(PlainTextRange(start_offset, end_offset - start_offset… in webkit_accessible_text_get_text()
291 static gchar* webkit_accessible_text_get_text_after_offset(AtkText* text, gint offset, AtkTextBound… in webkit_accessible_text_get_text_after_offset() argument
297 static gchar* webkit_accessible_text_get_text_at_offset(AtkText* text, gint offset, AtkTextBoundary… in webkit_accessible_text_get_text_at_offset() argument
303 static gunichar webkit_accessible_text_get_character_at_offset(AtkText* text, gint offset) in webkit_accessible_text_get_character_at_offset() argument
309 static gchar* webkit_accessible_text_get_text_before_offset(AtkText* text, gint offset, AtkTextBoun… in webkit_accessible_text_get_text_before_offset() argument
[all …]
/external/apache-http/src/org/apache/commons/codec/net/
DRFC1522Codec.java65 protected String encodeText(final String text, final String charset) in encodeText() argument
68 if (text == null) { in encodeText()
77 byte [] rawdata = doEncoding(text.getBytes(charset)); in encodeText()
95 protected String decodeText(final String text) in decodeText() argument
98 if (text == null) { in decodeText()
101 if ((!text.startsWith("=?")) || (!text.endsWith("?="))) { in decodeText()
104 int termnator = text.length() - 2; in decodeText()
106 int to = text.indexOf("?", from); in decodeText()
110 String charset = text.substring(from, to); in decodeText()
115 to = text.indexOf("?", from); in decodeText()
[all …]
/external/clearsilver/python/examples/base/
Dwordwrap.py9 def WordWrap(text, cols=70, detect_paragraphs = 0, is_header = 0): argument
10 text = string.replace(text,"\r\n", "\n") # remove CRLF
20 text = re.sub("([^\n])\n([^\n])",nlrepl,text)
25 ltext = len(text)
29 r = string.find(text, "\n", i, i+cols)
32 j = string.rfind(text, " ", i, i+cols)
34 r = string.find(text, "\n", i+cols)
36 j = string.find(text, " ", i+cols)
42 body.append(string.strip(text[i:j]))
/external/skia/include/core/
DSkString.h44 explicit SkString(const char text[]);
45 SkString(const char text[], size_t len);
54 bool equals(const char text[]) const;
55 bool equals(const char text[], size_t len) const;
84 void set(const char text[]);
85 void set(const char text[], size_t len);
90 void insert(size_t offset, const char text[]);
91 void insert(size_t offset, const char text[], size_t len);
98 void append(const char text[]) { this->insert((size_t)-1, text); } in append() argument
99 void append(const char text[], size_t len) { this->insert((size_t)-1, text, len); } in append() argument
[all …]

12345678910>>...44