/prebuilts/python/linux-x86/2.7.5/lib/python2.7/bsddb/test/ |
test_basics.py | 8 import string namespace 1002 for x in string.letters: 1050 self.assertEqual(count, len(string.letters)) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/idlelib/ |
configDialog.py | 14 import string namespace 42 'Python Strings':('string','05'), 194 ('\n ','normal'),('"""string"""','string'),('\n var0 = ','normal'), 195 ("'string'",'string'),('\n var1 = ','normal'),("'selected'",'hilite'), 564 value=str(value) #make sure we use a string 665 binding=string.join(prevKeys[event]) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
platform.py | 7 information concatenated as single string to stdout. The output 82 # 0.2.1 - added cache logic and changed the platform string format 116 import sys,string,os,re namespace 208 tv = string.split(line) 214 version = string.strip(value) 216 values = string.split(value,'-') 224 pkg = string.split(line,'-') 284 l = string.split(string.strip(firstline)) 455 version string using the format major.minor.build (or patchlevel) [all...] |
xmllib.py | 6 import string namespace 23 _QStr = "(?:'[^']*'|\"[^\"]*\")" # quoted XML string 73 attrtrans = string.maketrans(' \r\n\t', ' ') 225 # to the end of the string that is to be replaced [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_bigmem.py | 6 import string namespace 353 # The test takes about size bytes to build a string, and then about 371 # Allocates a string of twice size (and briefly two) and a list of 373 # list of size times the same one-character string, so we only 439 trans = string.maketrans('.aZ', '-!$') 498 # repr() will create a string four times as large as this 'binary 499 # string', but we don't want to allocate much more than twice 525 # doubled string is > 2G (but it tests more if both are > 2G :) 535 # repeated string is > 2G (but it tests more if both are > 2G :) 559 # string, too [all...] |
test_dict.py | 4 import UserDict, random, string namespace 18 items = [(''.join(random.sample(string.letters, 8)), i)
|
test_re.py | 7 import string namespace 365 self.assertEqual(re.match("(a)", "a").string, "a") 403 # There's a word boundary at the start of a string. 405 # A non-empty string includes a non-boundary zero-length match. 407 # There is no non-boundary match at the start of a string. 409 # However, an empty string contains no word boundaries, and also no 415 # A single word-character string has two boundaries, but no 504 alnum_chars = string.ascii_letters + string.digits 517 alnum_chars = (string.ascii_letters + string.digits).encode('ascii' [all...] |
/system/core/libusbhost/ |
usbhost.c | 35 #include <string.h> 450 char string[256]; local 456 string[0] = 0; 474 // skip first word, and copy the rest to the string, changing shorts to bytes. 477 string[i - 1] = buffer[i]; 478 string[i - 1] = 0; 479 return strdup(string);
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/ |
org.eclipse.ecf.identity_3.1.0.v20100529-0735.jar | |
/cts/tests/tests/database/src/android/database/cts/ |
CursorWrapperTest.java | 37 private static final String FIRST_NUMBER = "123"; 38 private static final String SECOND_NUMBER = "5555"; 41 private static final String[] NUMBER_PROJECTION = new String[] { 199 String[] columnNames = cursorWrapper.getColumnNames(); 285 final String STRING_TEXT = "Test String"; 286 final String STRING_TEXT2 = "Test String2"; 311 String sql = "INSERT INTO test2 (string_text, double_number, int_number, blob_data)" 374 String string = new String(charArrayBuffer.data) local [all...] |
/cts/tests/tests/os/src/android/os/cts/ |
ParcelTest.java | 203 String s = "IBinder interface token"; 258 // test String 260 p.writeValue("String"); 262 assertEquals("String", p.readValue(mcl)); 275 map.put("string", "String"); 284 assertEquals("String", map.get("string")); 293 bundle.putString("string", "String"); 1729 final String string = "Hello, Android!"; local [all...] |
/dalvik/hit/src/com/android/hit/ |
HprofParser.java | 70 * ID: heap name string ID 92 HashMap<Long, String> mStrings = new HashMap<Long, String>(); 93 HashMap<Long, String> mClassNames = new HashMap<Long, String>(); 104 String s = readNullTerminatedString(); 160 private String readNullTerminatedString() throws IOException { 182 private String readUTF8(int length) throws IOException { 187 return new String(b, "utf-8"); 192 String string = readUTF8(length) local [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
String2Test.java | 26 String hw1 = "HelloWorld"; 28 String hw2 = "HelloWorld"; 30 String hwlc = "helloworld"; 32 String hwuc = "HELLOWORLD"; 34 String hello1 = "Hello"; 36 String world1 = "World"; 38 String comp11 = "Test String"; 47 * @tests java.lang.String#String() 366 String string = new String(chars); local [all...] |
/external/chromium/sdch/open-vcdiff/src/ |
vcdecoder.cc | 34 #include <string.h> // memcpy, memset 36 #include <string> 215 // delta window, because the input data string may have been changed or 318 typedef std::string string; typedef in class:open_vcdiff::VCDiffStreamingDecoderImpl 472 string* decoded_target() { return &decoded_target_; } 529 // This string will be used to store any unparsed bytes left over when 534 string unparsed_bytes_; 537 // used to fill the output string for DecodeChunk(), and will also be used to 542 string decoded_target_ 827 typedef std::string string; typedef in class:open_vcdiff::__anon2977::TrackNewOutputText [all...] |
vcdiffengine_test.cc | 18 #include <string.h> // memset, strlen 20 #include <string> 37 typedef std::string string; typedef in class:open_vcdiff::__anon2980::VCDiffEngineTestBase 254 // Call this function before beginning to iterate through the diff string 274 // diff string using the Expect... functions. It makes sure that the 304 string diff_; 305 OutputString<string> diff_output_string_; 570 // This test case takes a dictionary containing several instances of the string 571 // "weasel", and a target string which is identical to the dictionar [all...] |
/external/chromium/third_party/libjingle/source/talk/base/ |
httpcommon.h | 32 #include <string> 144 bool FromString(HttpVersion& version, const std::string& str); 147 bool FromString(HttpVerb& verb, const std::string& str); 150 bool FromString(HttpHeader& header, const std::string& str); 166 typedef std::pair<std::string, std::string> HttpAttribute; 169 std::string* composed); 173 const std::string& name, 174 std::string* value); 177 std::string* name 207 typedef typename Traits<CTYPE>::string string; typedef in class:talk_base::Url [all...] |
/external/chromium-trace/trace-viewer/third_party/python_gflags/ |
gflags.py | 69 The exception argument will be a human-readable string. 73 take a name, default value, help-string, and optional 'short' name 77 DEFINE_string: takes any input, and interprets it as a string. 96 error. Otherwise, assign to FLAGS.flag as a string. 370 3. DEFAULT_FLAG_VALUE is in serialized form, i.e., the string you can 375 string 'false' will be represented in the same way as the boolean 394 import string namespace 518 # If flagvalue is the empty string, then this exception is an due to a 707 """Takes a __doc__ string and reformats it as help.""" 741 string). Returns (None, None) if the module could not b [all...] |
/external/chromium_org/content/browser/indexed_db/ |
indexed_db_leveldb_coding.cc | 21 // normally of type std::string. 59 // <database id, 0, 0, 2> => IDB string version data (obsolete) 78 // The key path was originally just a string (#1) or null (identified by flag, 79 // #6). To support null, string, or array the coding is now identified by the 205 inline void EncodeIntSafely(int64 nParam, int64 max, std::string* into) { 210 std::string MaxIDBKey() { 211 std::string ret; 216 std::string MinIDBKey() { 217 std::string ret; 222 void EncodeByte(unsigned char value, std::string* into) 572 base::string16 string; local 586 base::string16 string; local [all...] |
/external/chromium_org/dbus/ |
message.cc | 7 #include <string> 26 void AppendStringHeader(const std::string& header_name, 27 const std::string& header_value, 28 std::string* output) { 36 void AppendUint32Header(const std::string& header_name, 38 std::string* output) { 76 std::string Message::GetMessageTypeAsString() { 90 return std::string(); 93 std::string Message::ToStringInternal(const std::string& indent 836 std::string string; local [all...] |
/external/chromium_org/sdch/open-vcdiff/src/ |
vcdecoder.cc | 34 #include <string.h> // memcpy, memset 36 #include <string> 208 // delta window, because the input data string may have been changed or 311 typedef std::string string; typedef in class:open_vcdiff::VCDiffStreamingDecoderImpl 465 string* decoded_target() { return &decoded_target_; } 531 // This string will be used to store any unparsed bytes left over when 536 string unparsed_bytes_; 539 // used to fill the output string for DecodeChunk(), and will also be used to 544 string decoded_target_ [all...] |
/external/chromium_org/sync/tools/testserver/ |
chromiumsync.py | 19 import string namespace 255 """Converts a human-readable string to a sync type (python enum). 272 return ''.join(random.choice(string.ascii_uppercase + string.digits) 277 """Formats a sync type enum (from ALL_TYPES) to a human-readable string.""" 282 """Formats a GetUpdatesSource enum value to a readable string.""" 560 # The definitive copy of this client's items: a map from ID string to a 607 The string value of the computed server ID. 624 The string value of the computed server ID. 641 The string value of the computed server ID [all...] |
/external/chromium_org/third_party/WebKit/Source/core/css/ |
CSSPrimitiveValue.h | 206 static PassRefPtr<CSSPrimitiveValue> create(const String& value, UnitTypes type) { return adoptRef(new CSSPrimitiveValue(value, type)); } 282 void setStringValue(unsigned short stringType, const String& stringValue, ExceptionState&); 283 String getStringValue(ExceptionState&) const; 284 String getStringValue() const; 310 String customCSSText(CSSTextFormattingFlags = QuoteCSSStringIfNeeded) const; 311 String customSerializeResolvingVariables(const HashMap<AtomicString, String>&) const; 340 CSSPrimitiveValue(const String&, UnitTypes); 376 StringImpl* string; member in union:WebCore::CSSPrimitiveValue::__anon10628
|
/external/chromium_org/third_party/WebKit/Source/core/html/ |
HTMLMediaElement.h | 77 static blink::WebMimeRegistry::SupportsType supportsType(const ContentType&, const String& keySystem = String()); 111 String preload() const; 112 void setPreload(const String&); 116 String canPlayType(const String& mimeType, const String& keySystem = String(), const KURL& = KURL()) const; 150 void webkitGenerateKeyRequest(const String& keySystem, PassRefPtr<Uint8Array> initData, ExceptionState&); 151 void webkitGenerateKeyRequest(const String& keySystem, ExceptionState&) 569 static String string(const double value) function in struct:WebCore::ValueToString 577 static String string(TextTrackCue* const& cue) function in struct:WebCore::ValueToString [all...] |
/external/chromium_org/third_party/WebKit/Source/core/inspector/ |
InspectorIndexedDBAgent.cpp | 90 static PassRefPtr<GetDatabaseNamesCallback> create(PassRefPtr<RequestDatabaseNamesCallback> requestCallback, const String& securityOrigin) 119 RefPtr<TypeBuilder::Array<String> > databaseNames = TypeBuilder::Array<String>::create(); 126 GetDatabaseNamesCallback(PassRefPtr<RequestDatabaseNamesCallback> requestCallback, const String& securityOrigin) 131 String m_securityOrigin; 139 void start(IDBFactory*, SecurityOrigin*, const String& databaseName); 188 void ExecutableWithDatabase::start(IDBFactory* idbFactory, SecurityOrigin*, const String& databaseName) 200 static PassRefPtr<IDBTransaction> transactionForDatabase(ExecutionContext* executionContext, IDBDatabase* idbDatabase, const String& objectStoreName, const String& mode = IDBTransaction::modeReadOnly()) 209 static PassRefPtr<IDBObjectStore> objectStoreForTransaction(IDBTransaction* idbTransaction, const String& objectStoreName 332 String string; local [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/irc/ |
irclib.py | 68 import string namespace 241 event -- Event type (a string). Check the values of the 266 event -- Event type (a string). 779 def send_raw(self, string): 780 """Send raw string to the server. 782 The string will be padded with appropriate CR LF. 788 self.ssl.write(string + "\r\n") 790 self.socket.send(string + "\r\n") 792 print "TO SERVER:", string [all...] |