/external/libweave/src/ |
D | string_utils_unittest.cc | 17 std::vector<std::string> parts; in TEST() local 19 parts = Split("", ",", false, false); in TEST() 20 EXPECT_EQ(1u, parts.size()); in TEST() 21 EXPECT_EQ("", parts[0]); in TEST() 23 parts = Split("", ",", false, true); in TEST() 24 EXPECT_EQ(0u, parts.size()); in TEST() 26 parts = Split("abc", ",", false, false); in TEST() 27 EXPECT_EQ(1u, parts.size()); in TEST() 28 EXPECT_EQ("abc", parts[0]); in TEST() 30 parts = Split(",a,bc , d, ,e, ", ",", true, true); in TEST() [all …]
|
/external/libbrillo/brillo/strings/ |
D | string_utils_unittest.cc | 17 std::vector<std::string> parts; in TEST() local 19 parts = string_utils::Split("", ",", false, false); in TEST() 20 EXPECT_EQ(0, parts.size()); in TEST() 22 parts = string_utils::Split("abc", ",", false, false); in TEST() 23 EXPECT_EQ(1, parts.size()); in TEST() 24 EXPECT_EQ("abc", parts[0]); in TEST() 26 parts = string_utils::Split(",a,bc , d, ,e, ", ",", true, true); in TEST() 27 EXPECT_EQ(4, parts.size()); in TEST() 28 EXPECT_EQ("a", parts[0]); in TEST() 29 EXPECT_EQ("bc", parts[1]); in TEST() [all …]
|
/external/llvm/unittests/ADT/ |
D | StringRefTest.cpp | 151 SmallVector<StringRef, 5> parts; in TEST() local 155 StringRef(",ab,,c,").split(parts, ",", -1, false); in TEST() 156 EXPECT_TRUE(parts == expected); in TEST() 158 expected.clear(); parts.clear(); in TEST() 161 StringRef(",ab,,c,").split(parts, ",", -1, true); in TEST() 162 EXPECT_TRUE(parts == expected); in TEST() 164 expected.clear(); parts.clear(); in TEST() 166 StringRef("").split(parts, ",", -1, true); in TEST() 167 EXPECT_TRUE(parts == expected); in TEST() 169 expected.clear(); parts.clear(); in TEST() [all …]
|
/external/chromium-trace/catapult/third_party/Paste/paste/util/ |
D | import_string.py | 40 parts = s.split('.') 41 module = import_module(parts[0]) 42 name = parts[0] 43 parts = parts[1:] 45 while parts: 46 name += '.' + parts[0] 49 parts = parts[1:] 54 while parts: 56 obj = getattr(module, parts[0]) 59 …"Cannot find %s in module %r (stopped importing modules with error %s)" % (parts[0], module, last_… [all …]
|
/external/guava/guava/src/com/google/common/base/ |
D | Joiner.java | 92 * Appends the string representation of each of {@code parts}, using the previously configured 95 public <A extends Appendable> A appendTo(A appendable, Iterable<?> parts) throws IOException { in appendTo() argument 96 return appendTo(appendable, parts.iterator()); in appendTo() 100 * Appends the string representation of each of {@code parts}, using the previously configured 105 public <A extends Appendable> A appendTo(A appendable, Iterator<?> parts) throws IOException { in appendTo() argument 107 if (parts.hasNext()) { in appendTo() 108 appendable.append(toString(parts.next())); in appendTo() 109 while (parts.hasNext()) { in appendTo() 111 appendable.append(toString(parts.next())); in appendTo() 118 * Appends the string representation of each of {@code parts}, using the previously configured [all …]
|
/external/apache-http/android/src/com/android/internal/http/multipart/ |
D | Part.java | 351 * Write all parts and the last boundary to the specified output stream. 354 * @param parts The parts to write. 356 * @throws IOException If an I/O error occurs while writing the parts. 358 public static void sendParts(OutputStream out, final Part[] parts) in sendParts() argument 360 sendParts(out, parts, DEFAULT_BOUNDARY_BYTES); in sendParts() 364 * Write all parts and the last boundary to the specified output stream. 367 * @param parts The parts to write. 370 * @throws IOException If an I/O error occurs while writing the parts. 374 public static void sendParts(OutputStream out, Part[] parts, byte[] partBoundary) in sendParts() argument 377 if (parts == null) { in sendParts() [all …]
|
D | MultipartEntity.java | 57 * a series of parts. Each part is expected to contain a content-disposition 71 * Part[] parts = { 76 * new MultipartRequestEntity(parts, filePost.getParams()) 117 /** The MIME parts as set by the constructor */ 118 protected Part[] parts; field in MultipartEntity 127 * Creates a new multipart entity containing the given parts. 128 * @param parts The parts to include. 131 public MultipartEntity(Part[] parts, HttpParams params) { in MultipartEntity() argument 132 if (parts == null) { in MultipartEntity() 133 throw new IllegalArgumentException("parts cannot be null"); in MultipartEntity() [all …]
|
/external/autotest/client/tools/ |
D | scan_results.py | 22 parts = line.split("\t") 25 if (line.startswith("START") and len(parts) >= 5 and 26 parts[3].startswith("timestamp")): 27 start_time = float(parts[3].split("=")[1]) 32 elif (line.startswith("END") and len(parts) >= 5 and 33 parts[3].startswith("timestamp")): 34 end_time = float(parts[3].split("=")[1]) 37 test_name = parts[2] 38 test_status = parts[0].split()[1] 46 elif (len(parts) >= 6 and parts[3].startswith("timestamp") and [all …]
|
/external/opencv3/modules/core/src/opencl/runtime/generator/ |
D | parser_cl.py | 30 parts = line.split(); variable 43 parts = getTokens(line) variable 50 while (i < len(parts)): 51 if parts[i].startswith('CL_'): 52 modifiers.append(parts[i]) 56 while (i < len(parts)): 57 if not parts[i].startswith('CL_'): 58 ret.append(parts[i]) 62 while (i < len(parts)): 63 calling.append(parts[i]) [all …]
|
D | parser_clamdblas.py | 24 parts = line.split(); variable 31 while (i < len(parts)): 32 if parts[i].startswith('CL_'): 33 modifiers.append(parts[i]) 37 while (i < len(parts)): 38 if not parts[i].startswith('CL_'): 39 ret.append(parts[i]) 43 while (i < len(parts)): 44 calling.append(parts[i]) 66 parts = getTokens(line) variable [all …]
|
D | parser_clamdfft.py | 37 parts = getTokens(line) variable 46 if parts[i] == "CLAMDFFTAPI": 47 modifiers.append(parts[i]) 51 while (i < len(parts)): 52 if not parts[i] == '(': 53 ret.append(parts[i]) 64 name = parts[i]; i += 1; 68 params = getParameters(i, parts)
|
/external/jarjar/src/main/com/tonicsystems/jarjar/ |
D | RulesFileParser.java | 50 String[] parts = line.split("\\s+"); in parse() local 51 if (parts.length < 2) in parse() 52 error(c, parts); in parse() 53 String type = parts[0]; in parse() 56 if (parts.length < 3) in parse() 57 error(c, parts); in parse() 59 rule.setResult(parts[2]); in parse() 66 error(c, parts); in parse() 68 element.setPattern(parts[1]); in parse() 78 private static void error(int line, String[] parts) { in error() argument [all …]
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/builderTemplate/publishingFiles/staticDropFiles/ |
D | buildNotes.php | 4 $parts = explode("/", getcwd()); variable 5 $parts2 = explode("-", $parts[count($parts) - 1]); 14 $parts = explode(",", $aLine); variable 15 $dropNames[trim($parts[0])] = trim($parts[1]); 43 $parts = explode("_", $anEntry); variable 44 $baseName = $parts[1]; 45 $parts = explode(".", $baseName); variable 46 $component = $parts[0];
|
/external/clang/lib/Index/ |
D | CommentToXML.cpp | 81 /// Separate parts of a FullComment. 442 FullCommentParts Parts(C, Traits); in visitFullComment() local 445 if (Parts.Headerfile) in visitFullComment() 446 visit(Parts.Headerfile); in visitFullComment() 447 if (Parts.Brief) in visitFullComment() 448 visit(Parts.Brief); in visitFullComment() 449 else if (Parts.FirstParagraph) { in visitFullComment() 451 visitNonStandaloneParagraphComment(Parts.FirstParagraph); in visitFullComment() 456 for (unsigned i = 0, e = Parts.MiscBlocks.size(); i != e; ++i) { in visitFullComment() 457 const Comment *C = Parts.MiscBlocks[i]; in visitFullComment() [all …]
|
/external/chromium-trace/catapult/third_party/webapp2/webapp2_extras/ |
D | securecookie.py | 70 parts = value.split('|') 71 if len(parts) != 3: 74 signature = self._get_signature(name, parts[0], parts[1]) 76 if not security.compare_hashes(parts[2], signature): 81 if int(parts[1]) < self._get_timestamp() - max_age: 86 return self._decode(parts[0]) 88 logging.warning('Cookie value failed to be decoded: %r', parts[0]) 100 def _get_signature(self, *parts): argument 103 signature.update('|'.join(parts))
|
/external/lzma/CPP/7zip/UI/Common/ |
D | ExtractingFilePath.cpp | 137 UString MakePathNameFromParts(const UStringVector &parts) in MakePathNameFromParts() argument 140 FOR_VECTOR (i, parts) in MakePathNameFromParts() 144 result += parts[i]; in MakePathNameFromParts() 151 void Correct_IfEmptyLastPart(UStringVector &parts) in Correct_IfEmptyLastPart() argument 153 if (parts.IsEmpty()) in Correct_IfEmptyLastPart() 154 parts.Add(k_EmptyReplaceName); in Correct_IfEmptyLastPart() 157 UString &s = parts.Back(); in Correct_IfEmptyLastPart() 177 UStringVector parts; in GetCorrectFullFsPath() local 178 SplitPathToParts(path, parts); in GetCorrectFullFsPath() 179 FOR_VECTOR (i, parts) in GetCorrectFullFsPath() [all …]
|
/external/autotest/client/deps/fakegudev/src/ |
D | fakesyscalls.c | 147 gchar **parts; in setup_redirection_map() local 158 parts = g_regex_split (key_value_delimiter, buf, 0); in setup_redirection_map() 161 if (g_strv_length (parts) != 2) { in setup_redirection_map() 164 g_strfreev (parts); in setup_redirection_map() 167 if (strlen (parts[0]) == 0 || parts[0][0] != '/' || in setup_redirection_map() 168 strlen (parts[1]) == 0 || parts[1][0] != '/') { in setup_redirection_map() 172 g_strfreev (parts); in setup_redirection_map() 177 parts[0], parts[1]); in setup_redirection_map() 179 g_strdup (parts[0]), g_strdup (parts[1])); in setup_redirection_map() 180 g_strfreev (parts); in setup_redirection_map()
|
/external/guava/guava/src/com/google/common/net/ |
D | InternetDomainName.java | 63 * {@link #parts()}, and will be reflected in the result of 93 * Maximum parts (labels) in a domain name. This value arises from 121 * The parts of the domain name, converted to lower case. 123 private final ImmutableList<String> parts; field in InternetDomainName 126 * The index in the {@link #parts()} list at which the public suffix begins. 153 this.parts = ImmutableList.copyOf(DOT_SPLITTER.split(name)); in InternetDomainName() 154 checkArgument(parts.size() <= MAX_PARTS, in InternetDomainName() 155 "Domain has too many parts: '%s'", name); in InternetDomainName() 156 checkArgument(validateSyntax(parts), "Not a valid domain name: '%s'", name); in InternetDomainName() 168 final int partsSize = parts.size(); in findPublicSuffix() [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/complex/ |
D | Complex.java | 37 * infinite values in real or imaginary parts as these arise in computation. 83 * Create a complex number given the real and imaginary parts. 142 * returned in the parts of the result according to the rules for 198 * <li>If this is finite (i.e., has no infinite or NaN parts) and 199 * <code>rhs</code> is infinite (one or both parts infinite), 202 * returned in the parts of the result if the {@link java.lang.Double} 241 * If both the real and imaginary parts of two Complex numbers 246 * (or both) real and imaginary parts of the complex number are equal 307 * Returns true if either or both parts of this complex number is NaN; 310 * @return true if either or both parts of this complex number is NaN; [all …]
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/builderTemplate/publishingFiles/dropSiteRootFiles/ |
D | index.php | 66 $parts = explode("-", $anEntry); variable 67 if (count($parts) == 3) { 69 $buckets[$parts[0]][] = $anEntry; 71 $timePart = $parts[2]; 81 if ($timeStamp > $latestTimeStamp[$parts[0]]) { 82 $latestTimeStamp[$parts[0]] = $timeStamp; 83 $latestFile[$parts[0]] = $anEntry; 100 $parts = explode("-", $fileName); variable 103 // echo "<td><a href=license.php?license=drops/$fileName>$parts[1]</a></td>"; 106 echo "<td><a href=\"drops/$fileName/index.html\">$parts[1]</a></td>"; [all …]
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/s3/ |
D | website.py | 78 parts = ['<?xml version="1.0" encoding="UTF-8"?>', 81 parts.append(tag('IndexDocument', tag('Suffix', self.suffix))) 83 parts.append(tag('ErrorDocument', tag('Key', self.error_key))) 85 parts.append(self.redirect_all_requests_to.to_xml()) 87 parts.append(self.routing_rules.to_xml()) 88 parts.append('</WebsiteConfiguration>') 89 return ''.join(parts) 109 parts = [] 113 parts.append(tag(xml_key, content)) 114 return ''.join(parts) [all …]
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/dynamodb2/ |
D | fields.py | 99 def __init__(self, name, parts): argument 101 self.parts = parts 118 for part in self.parts: 149 for part in self.parts: 167 >>> AllIndex('MostRecentlyJoined', parts=[ 182 >>> KeysOnlyIndex('MostRecentlyJoined', parts=[ 197 >>> IncludeIndex('GenderIndex', parts=[ 274 >>> GlobalAllIndex('MostRecentlyJoined', parts=[ 293 >>> GlobalKeysOnlyIndex('MostRecentlyJoined', parts=[ 312 >>> GlobalIncludeIndex('GenderIndex', parts=[
|
/external/chromium-trace/catapult/third_party/Paste/paste/ |
D | urlmap.py | 41 parts = path.split() 43 while parts: 44 if parts[0] == 'domain': 45 parts.pop(0) 46 if not parts: 50 domain = parts.pop(0) 51 elif parts[0] == 'port': 52 parts.pop(0) 53 if not parts: 57 port = parts.pop(0) [all …]
|
/external/llvm/lib/Support/ |
D | APInt.cpp | 678 // We can check that all parts of an integer are equal by making use of a in isSplat() 2337 zeroes out higher parts. */ 2339 APInt::tcSet(integerPart *dst, integerPart part, unsigned int parts) in tcSet() argument 2343 assert(parts > 0); in tcSet() 2346 for (i = 1; i < parts; i++) in tcSet() 2352 APInt::tcAssign(integerPart *dst, const integerPart *src, unsigned int parts) in tcAssign() argument 2356 for (i = 0; i < parts; i++) in tcAssign() 2362 APInt::tcIsZero(const integerPart *src, unsigned int parts) in tcIsZero() argument 2366 for (i = 0; i < parts; i++) in tcIsZero() 2375 APInt::tcExtractBit(const integerPart *parts, unsigned int bit) in tcExtractBit() argument [all …]
|
/external/chromium-trace/catapult/perf_insights/perf_insights/ |
D | function_handle.py | 122 parts = [module.filename for module in 124 parts.append(self.function_name) 126 return ':'.join(parts) 130 parts = user_str.split(':') 131 if len(parts) < 2: 133 'Tried to deserialize string with less than two parts: ' + user_str) 135 modules_to_load = [ModuleToLoad(filename=name) for name in parts[:-1]] 138 function_name=parts[-1])
|