Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 93) sorted by relevance

1234

/packages/apps/Browser/tools/
Dget_search_engines.py69 def getXmlString(self, str): argument
77 str = str.strip()
78 if str.upper() == 'NULL':
81 if str.startswith('L"'):
82 str = str[2:]
83 if str.startswith('@') or str.startswith('?'):
84 str = '\\' + str
86 str = str.strip('"')
87 str = str.replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;')
88 str = str.replace('"', '&quot;').replace('\'', '&apos;')
[all …]
/packages/apps/Email/src/org/apache/commons/io/
DIOCase.java178 public boolean checkStartsWith(String str, String start) { in checkStartsWith() argument
179 return str.regionMatches(!sensitive, 0, start, 0, start.length()); in checkStartsWith()
193 public boolean checkEndsWith(String str, String end) { in checkEndsWith() argument
195 return str.regionMatches(!sensitive, str.length() - endLen, end, 0, endLen); in checkEndsWith()
210 public boolean checkRegionMatches(String str, int strStartIndex, String search) { in checkRegionMatches() argument
211 return str.regionMatches(!sensitive, strStartIndex, search, 0, search.length()); in checkRegionMatches()
221 String convertCase(String str) { in convertCase() argument
222 if (str == null) { in convertCase()
225 return sensitive ? str : str.toLowerCase(); in convertCase()
/packages/inputmethods/PinyinIME/jni/share/
Dspellingtable.cpp34 if ('\0' == (static_cast<const RawSpelling*>(p1))->str[0]) in compare_raw_spl_eb()
37 if ('\0' == (static_cast<const RawSpelling*>(p2))->str[0]) in compare_raw_spl_eb()
40 return strcmp((static_cast<const RawSpelling*>(p1))->str, in compare_raw_spl_eb()
41 (static_cast<const RawSpelling*>(p2))->str); in compare_raw_spl_eb()
151 raw_spellings_[hash_pos].str[spelling_size_ - 1] = '\0'; in put_spelling()
153 if (strncmp(raw_spellings_[hash_pos].str, spelling_str, in put_spelling()
162 if (strncmp(raw_spellings_[hash_pos].str, in put_spelling()
168 if ('\0' == raw_spellings_[hash_pos].str[0]) { in put_spelling()
170 strncpy(raw_spellings_[hash_pos].str, spelling_str, spelling_size_ - 1); in put_spelling()
171 raw_spellings_[hash_pos].str[spelling_size_ - 1] = '\0'; in put_spelling()
[all …]
Ddictlist.cpp348 LemmaIdType DictList::get_lemma_id(const char16 *str, uint16 str_len) { in get_lemma_id() argument
349 if (NULL == str || str_len > kMaxLemmaSize) in get_lemma_id()
352 char16 *found = find_pos_startedbyhzs(str, str_len, cmp_func_[str_len - 1]); in get_lemma_id()
363 void DictList::convert_to_hanzis(char16 *str, uint16 str_len) { in convert_to_hanzis() argument
364 assert(NULL != str); in convert_to_hanzis()
367 str[str_pos] = scis_hz_[str[str_pos]]; in convert_to_hanzis()
371 void DictList::convert_to_scis_ids(char16 *str, uint16 str_len) { in convert_to_scis_ids() argument
372 assert(NULL != str); in convert_to_scis_ids()
375 str[str_pos] = 0x100; in convert_to_scis_ids()
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DSoftKey.java220 String str = "\n"; in toString() local
221 str += " keyCode: " + String.valueOf(mKeyCode) + "\n"; in toString()
222 str += " keyMask: " + String.valueOf(mKeyMask) + "\n"; in toString()
223 str += " keyLabel: " + (mKeyLabel == null ? "null" : mKeyLabel) + "\n"; in toString()
224 str += " popupResId: " + String.valueOf(mPopupSkbId) + "\n"; in toString()
225 str += " Position: " + String.valueOf(mLeftF) + ", " in toString()
228 return str; in toString()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DCandidateFilter.java46 String str = word.candidate; in isAllowed() local
47 for (int i = 0; i < str.length(); i++) { in isAllowed()
48 if (str.charAt(i) < 0x20 || 0x7E < str.charAt(i)) { in isAllowed()
DStrSegment.java47 public StrSegment(String str) { in StrSegment() argument
48 this(str, -1, -1); in StrSegment()
67 public StrSegment(String str, int from, int to) { in StrSegment() argument
68 this.string = str; in StrSegment()
DComposingText.java265 public void insertStrSegment(int layer, StrSegment str) { in insertStrSegment() argument
267 mStringLayer[layer].add(cursor, str); in insertStrSegment()
279 public void insertStrSegment(int layer1, int layer2, StrSegment str) { in insertStrSegment() argument
280 mStringLayer[layer1].add(mCursor[layer1], str); in insertStrSegment()
285 StrSegment tmp = new StrSegment(str.string, pos, pos); in insertStrSegment()
308 protected void replaceStrSegment0(int layer, StrSegment[] str, int from, int to) { in replaceStrSegment0() argument
320 for (int i = str.length - 1; i >= 0; i--) { in replaceStrSegment0()
321 strLayer.add(from, str[i]); in replaceStrSegment0()
324 modifyUpper(layer, from, str.length, to - from + 1); in replaceStrSegment0()
334 public void replaceStrSegment(int layer, StrSegment[] str, int num) { in replaceStrSegment() argument
[all …]
/packages/inputmethods/LatinIME/native/jni/src/
Ddictionary.h65 static int wideStrLen(unsigned short *str);
84 inline int Dictionary::wideStrLen(unsigned short *str) { in wideStrLen() argument
85 if (!str) return 0; in wideStrLen()
86 unsigned short *end = str; in wideStrLen()
89 return end - str; in wideStrLen()
/packages/apps/Email/src/org/apache/commons/io/output/
DProxyWriter.java80 public void write(String str) throws IOException { in write() argument
81 out.write(str); in write()
91 public void write(String str, int st, int end) throws IOException { in write() argument
92 out.write(str, st, end); in write()
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dndldic.c508 NJ_CHAR *str; in que_strcmp_complete_with_hyouki() local
530 str = get_string(iwnn, handle, que_id, &slen); in que_strcmp_complete_with_hyouki()
531 if (str == NULL) { in que_strcmp_complete_with_hyouki()
537 ret = nj_strncmp(yomi, str, que_yomilen); in que_strcmp_complete_with_hyouki()
543 str = get_hyouki(iwnn, handle, que_id, &slen); in que_strcmp_complete_with_hyouki()
544 if (str == NULL) { in que_strcmp_complete_with_hyouki()
550 ret = nj_strncmp(hyouki, str, que_hyoukilen); in que_strcmp_complete_with_hyouki()
595 NJ_CHAR *str; in que_strcmp_include() local
629 str = get_string(iwnn, handle, que_id, &slen); in que_strcmp_include()
632 str = NULL; in que_strcmp_include()
[all …]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
DRomkanFullKatakana.java173 StrSegment[] str = new StrSegment[MAX_LENGTH]; in convert() local
177 str[MAX_LENGTH - i] = text.getStrSegment(1, cursor - i); in convert()
184 key.append(str[i].string); in convert()
195 out[0] = new StrSegment(match, str[start].from, str[MAX_LENGTH - 1].to); in convert()
200 str[start].from, str[MAX_LENGTH - 1].to - 1); in convert()
202 str[MAX_LENGTH - 1].to, str[MAX_LENGTH - 1].to); in convert()
DRomkan.java169 StrSegment[] str = new StrSegment[MAX_LENGTH]; in convert() local
173 str[MAX_LENGTH - i] = text.getStrSegment(1, cursor - i); in convert()
180 key.append(str[i].string); in convert()
191 out[0] = new StrSegment(match, str[start].from, str[MAX_LENGTH - 1].to); in convert()
196 str[start].from, str[MAX_LENGTH - 1].to - 1); in convert()
198 str[MAX_LENGTH - 1].to, str[MAX_LENGTH - 1].to); in convert()
/packages/apps/Email/src/org/apache/james/mime4j/field/datetime/parser/
DTokenMgrError.java55 protected static final String addEscapes(String str) { in addEscapes() argument
58 for (int i = 0; i < str.length(); i++) { in addEscapes()
59 switch (str.charAt(i)) in addEscapes()
88 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { in addEscapes()
DParseException.java162 protected String add_escapes(String str) { in add_escapes() argument
165 for (int i = 0; i < str.length(); i++) { in add_escapes()
166 switch (str.charAt(i)) in add_escapes()
195 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { in add_escapes()
/packages/apps/Email/src/org/apache/james/mime4j/field/contenttype/parser/
DTokenMgrError.java55 protected static final String addEscapes(String str) { in addEscapes() argument
58 for (int i = 0; i < str.length(); i++) { in addEscapes()
59 switch (str.charAt(i)) in addEscapes()
88 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { in addEscapes()
DParseException.java162 protected String add_escapes(String str) { in add_escapes() argument
165 for (int i = 0; i < str.length(); i++) { in add_escapes()
166 switch (str.charAt(i)) in add_escapes()
195 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { in add_escapes()
/packages/apps/Email/src/org/apache/james/mime4j/field/address/parser/
DTokenMgrError.java55 protected static final String addEscapes(String str) { in addEscapes() argument
58 for (int i = 0; i < str.length(); i++) { in addEscapes()
59 switch (str.charAt(i)) in addEscapes()
88 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { in addEscapes()
DParseException.java162 protected String add_escapes(String str) { in add_escapes() argument
165 for (int i = 0; i < str.length(); i++) { in add_escapes()
166 switch (str.charAt(i)) in add_escapes()
195 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { in add_escapes()
/packages/apps/Email/src/org/apache/james/mime4j/codec/
DEncoderUtil.java433 public static boolean isToken(String str) { in isToken() argument
439 final int length = str.length(); in isToken()
444 char ch = str.charAt(idx); in isToken()
452 private static boolean isAtomPhrase(String str) { in isAtomPhrase() argument
457 final int length = str.length(); in isAtomPhrase()
459 char ch = str.charAt(idx); in isAtomPhrase()
471 private static boolean isDotAtomText(String str) { in isDotAtomText() argument
478 final int length = str.length(); in isDotAtomText()
483 char ch = str.charAt(idx); in isDotAtomText()
500 private static String quote(String str) { in quote() argument
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DDefaultSuggestionView.java127 private CharSequence formatText(String str, Suggestion suggestion) { in formatText() argument
129 if (isHtml && looksLikeHtml(str)) { in formatText()
130 return Html.fromHtml(str); in formatText()
132 return str; in formatText()
136 private boolean looksLikeHtml(String str) { in looksLikeHtml() argument
137 if (TextUtils.isEmpty(str)) return false; in looksLikeHtml()
138 for (int i = str.length() - 1; i >= 0; i--) { in looksLikeHtml()
139 char c = str.charAt(i); in looksLikeHtml()
/packages/apps/Exchange/exchange2/src/com/android/exchange/
DAbstractSyncService.java204 public void userLog(String str, Exception e) { in userLog() argument
206 Log.e(TAG, str, e); in userLog()
208 Log.e(TAG, str + e); in userLog()
244 public void errorLog(String str) { in errorLog() argument
245 Log.e(TAG, str); in errorLog()
247 FileLogger.log(TAG, str); in errorLog()
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/
DSerializer.java80 void log(String str) { in log() argument
81 int cr = str.indexOf('\n'); in log()
83 str = str.substring(0, cr); in log()
85 Log.v(TAG, str); in log()
87 FileLogger.log(TAG, str); in log()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DLevenshteinSuggestionFormatter.java51 final SpannableString str = new SpannableString(suggestion); in formatSuggestion() local
61 applySuggestedTextStyle(str, t.mStart + sourceLen, t.mEnd); in formatSuggestion()
62 applyQueryTextStyle(str, t.mStart, t.mStart + sourceLen); in formatSuggestion()
65 return str; in formatSuggestion()
/packages/apps/Email/src/org/apache/james/mime4j/message/
DHeader.java135 StringBuffer str = new StringBuffer(); in toString() local
137 str.append(it.next().toString()); in toString()
138 str.append("\r\n"); in toString()
140 return str.toString(); in toString()

1234