Searched refs:ch (Results 1 - 25 of 52) sorted by relevance

123

/packages/apps/Email/src/com/beetstra/jutf7/
H A DBase64Util.java75 final char ch = this.alphabet[i];
76 if (ch >= 128)
77 throw new IllegalArgumentException("invalid character in alphabet: " + ch);
78 inverseAlphabet[ch] = i;
86 * @param ch The character, as a ASCII encoded byte
90 int getSextet(final byte ch) { argument
91 if (ch >= 128)
93 return inverseAlphabet[ch];
99 * @param ch The character
100 * @return true if the alphabet contains <code>ch</cod
102 contains(final char ch) argument
[all...]
H A DModifiedUTF7Charset.java44 boolean canEncodeDirectly(char ch) { argument
45 if (ch == shift())
47 return ch >= 0x20 && ch <= 0x7E;
H A DUTF7StyleCharsetEncoder.java148 char ch = in.get();
149 if (cs.canEncodeDirectly(ch)) {
150 unshift(out, ch);
151 out.put((byte)ch);
152 } else if (!base64mode && ch == shift) {
156 encodeBase64(ch, out);
178 * @param ch
180 private void unshift(ByteBuffer out, char ch) { argument
185 if (base64.contains(ch) || ch
203 encodeBase64(char ch, ByteBuffer out) argument
[all...]
H A DUTF7Charset.java56 boolean canEncodeDirectly(char ch) { argument
57 return directlyEncoded.indexOf(ch) >= 0;
H A DUTF7StyleCharset.java98 * @param ch The character
101 abstract boolean canEncodeDirectly(char ch); argument
/packages/apps/Email/src/com/android/email/mail/store/
H A DImapResponseParser.java89 int ch = mIn.peek();
90 if (ch == '*') {
93 } else if (ch == '+') {
179 int ch = mIn.peek();
180 if (ch == '(') {
182 } else if (ch == ')') {
185 } else if (ch == '[') {
187 } else if (ch == ']') {
190 } else if (ch == '"') {
192 } else if (ch
330 expect(char ch) argument
[all...]
/packages/apps/Email/src/org/apache/commons/io/input/
H A DTeeInputStream.java106 int ch = super.read();
107 if (ch != -1) {
108 branch.write(ch);
110 return ch;
/packages/inputmethods/PinyinIME/jni/include/
H A Dspellingtrie.h109 // spelling, including Shengmu and Yunmu), or id of zh/ch/sh.
134 // The caller should guarantee ch >= 'A' && ch <= 'Z'
135 bool is_shengmu_char(char ch) const;
137 // The caller should guarantee ch >= 'A' && ch <= 'Z'
138 bool is_yunmu_char(char ch) const;
157 inline static bool is_valid_spl_char(char ch) { argument
158 return (ch >= 'a' && ch <
[all...]
H A Dpinyinime.h115 * @param ch The letter to add.
118 size_t im_add_letter(char ch);
/packages/apps/Mms/src/com/android/mms/ui/
H A DConversationListItem.java124 private CharSequence formatMessage(ConversationListItemData ch) { argument
127 String from = ch.getFrom();
131 if (ch.getMessageCount() > 1) {
132 buf.append(" (" + ch.getMessageCount() + ") ");
136 if (ch.hasDraft()) {
147 if (!ch.isRead()) {
155 ConversationListItemData ch = mConversationHeader;
158 if (ch.getContacts().size() == 1) {
159 Contact contact = ch.getContacts().get(0);
177 ConversationListItemData ch
192 bind(Context context, final ConversationListItemData ch) argument
[all...]
H A DConversationListAdapter.java58 ConversationListItemData ch = new ConversationListItemData(context, conv);
59 headerView.bind(context, ch);
/packages/apps/Email/src/com/android/exchange/utility/
H A DSimpleIcsWriter.java142 char ch = s.charAt(i);
143 if (ch == '\n') {
145 } else if (ch == '\r') {
147 } else if (ch == ',' || ch == ';' || ch == '\\') {
149 sb.append(ch);
151 sb.append(ch);
/packages/inputmethods/PinyinIME/jni/share/
H A Dspellingtrie.cpp121 char ch = kHalfId2Sc_[*splid]; local
122 if (ch > 'Z') {
125 if (szm_is_enabled(ch)) {
127 } else if (is_yunmu_char(ch)) {
170 char ch = kHalfId2Sc_[splid]; local
171 // If ch >= 'a', that means the half id is one of Zh/Ch/Sh
172 if (ch >= 'a') {
176 return char_flags_[ch - 'A'] & kHalfIdYunmuMask;
179 bool SpellingTrie::is_shengmu_char(char ch) const {
180 return char_flags_[ch
[all...]
/packages/apps/Email/src/org/apache/commons/io/output/
H A DDemuxOutputStream.java80 * @param ch the byte to write to stream
83 public void write( int ch )
89 output.write( ch );
/packages/apps/Email/src/org/apache/james/mime4j/codec/
H A DEncoderUtil.java72 for (char ch = 33; ch < 127; ch++) {
73 if (specials.indexOf(ch) == -1) {
74 bs.set(ch);
225 char ch = text.charAt(idx);
226 if (ch == '\t' || ch == ' ') {
238 if (ch < 32 || ch >
[all...]
/packages/apps/IM/libwbxml/include/
H A Dwbxml_encoder.h67 static bool isXmlWhitespace(int ch);
84 void appendResult(int ch) argument
86 mResult += (char)ch;
H A Dwbxml_stl.h72 string & operator+=(char ch) argument
74 char c[2] = {ch, 0}; // temporary workaround for String8.append(str, len) bug
/packages/apps/IM/libwbxml/src/
H A Dwbxml_parser.cpp518 uint32_t ch = readMbuint32(); local
520 if (ch <= 0x7f) {
521 str += (char)ch;
522 } else if (ch <= 0x7ff) {
523 str += (char)((ch >> 6) | 0xc0);
524 str += (char)((ch & 0x3f) | 0x80);
525 } else if (ch <= 0xffff) {
526 str += (char)((ch >> 12) | 0xe0);
527 str += (char)(((ch >> 6) & 0x3f) | 0x80);
528 str += (char)((ch
[all...]
H A Dwbxml_encoder.cpp22 bool WbxmlEncoder::isXmlWhitespace(int ch) argument
24 return ch == ' ' || ch == 9 || ch == 0xd || ch == 0xa;
/packages/apps/Mms/src/com/android/mms/dom/smil/parser/
H A DSmilContentHandler.java90 public void characters(char[] ch, int start, int length) { argument
92 Log.v(TAG, "SmilContentHandler.characters. ch = " + new String(ch, start, length));
/packages/inputmethods/PinyinIME/lib/com/android/inputmethod/pinyin/
H A DIPinyinDecoderService.aidl26 int imAddLetter(byte ch);
/packages/apps/IM/src/com/android/im/imps/
H A DImpsAddress.java258 char ch = str.charAt(i);
259 if(ch < 32 || ch > 126 || isSpecial(ch)) {
266 private boolean isSpecial(char ch) { argument
268 if(ch == element) {
H A DPtsPrimitiveParser.java506 char ch = buf.charAt(pos);
507 if (ch == ' ' || ch == '=') {
546 char ch = buf.charAt(pos);
547 if (ch == '(') {
571 if (ch == '"') {
577 ch = buf.charAt(pos);
579 if (ch == '"') {
588 escapedValue.append(ch);
597 ch
[all...]
H A DWbxmlParser.java98 void characters(char[] ch, int length) throws SAXException { argument
100 mContentHandler.characters(ch, 0, length);
115 native void nativeParse(int nativeParser, byte[] ch, int length, argument
/packages/apps/Gallery3D/src/com/cooliris/picasa/
H A DGDataParser.java139 public void characters(char[] ch, int start, int length) throws SAXException { argument
140 mValue.append(ch, start, length);
143 public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException { argument

Completed in 212 milliseconds

123