Home
last modified time | relevance | path

Searched +full:split +full:- +full:string (Results 1 – 25 of 1223) sorted by relevance

12345678910>>...49

/external/guava/android/guava-tests/test/com/google/common/base/
DSplitterTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
45 COMMA_SPLITTER.split(null); in testSplitNullString()
52 String simple = "a,b,c"; in testCharacterSimpleSplit()
53 Iterable<String> letters = COMMA_SPLITTER.split(simple); in testCharacterSimpleSplit()
58 * All of the infrastructure of split and splitToString is identical, so we do one test of
59 * splitToString. All other cases should be covered by testing of split.
61 * <p>TODO(user): It would be good to make all the relevant tests run on both split and
65 String simple = "a,b,c"; in testCharacterSimpleSplitToList()
66 List<String> letters = COMMA_SPLITTER.splitToList(simple); in testCharacterSimpleSplitToList()
71 assertEquals("[]", COMMA_SPLITTER.split("").toString()); in testToString()
[all …]
/external/guava/guava-tests/test/com/google/common/base/
DSplitterTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
46 COMMA_SPLITTER.split(null); in testSplitNullString()
53 String simple = "a,b,c"; in testCharacterSimpleSplit()
54 Iterable<String> letters = COMMA_SPLITTER.split(simple); in testCharacterSimpleSplit()
59 * All of the infrastructure of split and splitToString is identical, so we do one test of
60 * splitToString. All other cases should be covered by testing of split.
62 * <p>TODO(user): It would be good to make all the relevant tests run on both split and
66 String simple = "a,b,c"; in testCharacterSimpleSplitToList()
67 List<String> letters = COMMA_SPLITTER.splitToList(simple); in testCharacterSimpleSplitToList()
72 String simple = "a,b,c"; in testCharacterSimpleSplitToStream()
[all …]
/external/jsilver/src/com/google/clearsilver/jsilver/data/
DDefaultHdfParser.java8 * http://www.apache.org/licenses/LICENSE-2.0
36 ResourceLoader resourceLoader, String dataFileName, boolean ignoreAttributes) in parse()
42 List<String> context = new ArrayList<String>(initialContextSize); in parse()
43 String line; in parse()
49 private void parseLine(String line, Data output, List<String> context, in parseLine()
50 LineNumberReader lineReader, String dataFileName, ErrorHandler errorHandler) in parseLine()
54 Split split; in parseLine() local
55 if ((split = split(line, "=")) != null) { in parseLine()
57 output.setValue(createFullPath(context, split.left), split.right); in parseLine()
58 } else if ((split = split(line, "<<")) != null) { in parseLine()
[all …]
/external/MPAndroidChart/MPChartLib/src/main/java/com/github/mikephil/charting/utils/
DFileUtils.java29 private static final String LOG = "MPChart-FileUtils";
32 * Loads a an Array of Entries from a textfile from the sd-card.
34 * @param path the name of the file on the sd-card (+ path if needed)
37 public static List<Entry> loadEntriesFromFile(String path) { in loadEntriesFromFile()
49 String line; in loadEntriesFromFile()
52 String[] split = line.split("#"); in loadEntriesFromFile() local
54 if (split.length <= 2) { in loadEntriesFromFile()
55 entries.add(new Entry(Float.parseFloat(split[0]), Integer.parseInt(split[1]))); in loadEntriesFromFile()
58 float[] vals = new float[split.length - 1]; in loadEntriesFromFile()
61 vals[i] = Float.parseFloat(split[i]); in loadEntriesFromFile()
[all …]
/external/autotest/client/site_tests/platform_ToolchainTests/src/
Dclang-fortify-tests.cpp2 // Use of this source code is governed by a BSD-style license that can be
6 #error "Non-clang isn't supported"
9 // Clang compile-time and run-time tests for glibc FORTIFY.
16 // to check diagnostics (e.g. the expected-* comments everywhere).
27 // expected-note@* 0+{{from 'diagnose_if'}}
31 // expected-note@* 0+{{candidate function}}
32 // expected-note@* 0+{{has been explicitly marked unavailable}}
43 #include <string.h>
51 #include "clang-fortify-common.h"
54 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
[all …]
/external/guava/guava/src/com/google/common/base/
DSplitter.java7 * http://www.apache.org/licenses/LICENSE-2.0
35 * Extracts non-overlapping substrings from an input string, typically by recognizing appearances of
37 * character}, fixed {@linkplain #on(String) string}, {@linkplain #onPattern regular expression} or
44 * Splitter.on(',').split("foo,bar,qux")
54 * Splitter.on(',').split(" foo,,, bar ,")
67 * <p>Now {@code MY_SPLITTER.split("foo,,, bar ,")} returns just {@code ["foo", "bar"]}. Note that
78 * return splitter.split("wrong / wrong / wrong");
81 * <p>For separator-based splitters that do not use {@code omitEmptyStrings}, an input string
84 * containing the entire input. Consequently, all splitters split the empty string to {@code [""]}
85 * (note: even fixed-length splitters).
[all …]
/external/rust/crates/os_str_bytes/src/
Diter.rs16 // become self-referential. Additionally, that iterator does not implement
19 /// The iterator returned by [`RawOsStr::split`].
20 pub struct Split<'a, P> struct
24 string: Option<&'a RawOsStr>, field
28 impl<'a, P> Split<'a, P> argument
33 pub(super) fn new(string: &'a RawOsStr, pat: P) -> Self { in new()
37 "cannot split using an empty pattern", in new()
40 string: Some(string), in new()
49 .string?
52 let (substring, string) = $swap_fn(substrings);
[all …]
/external/tensorflow/tensorflow/lite/testing/
Dsplit.h7 http://www.apache.org/licenses/LICENSE-2.0
22 #include <string>
31 // Splits a string based on the given delimiter string. Each pair in the
32 // returned vector has the start and past-the-end positions for each of the
33 // parts of the original string. Empty fields are not represented in the
35 std::vector<std::pair<size_t, size_t>> SplitToPos(const string& s,
36 const string& delimiter);
38 // Splits the given string and converts each part to the given T.
40 std::vector<T> Split(const string& s, const string& delimiter);
43 inline std::vector<string> Split(const string& s, const string& delimiter) { in Split() function
[all …]
/external/kotlinx.coroutines/benchmarks/src/jmh/java/benchmarks/flow/scrabble/optimizations/
DStringFlowable.java2 …* Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 licen…
21 * Signals each character of the given string CharSequence as Integers.
22 * @param string the source of characters
25 public static Flowable<Integer> characters(CharSequence string) { in characters() argument
26 ObjectHelper.requireNonNull(string, "string is null"); in characters()
27 return RxJavaPlugins.onAssembly(new FlowableCharSequence(string)); in characters()
33 * @param pattern the Rexexp pattern to split along
38 public static FlowableTransformer<String, String> split(Pattern pattern) { in split() method in StringFlowable
39 return split(pattern, Flowable.bufferSize()); in split()
45 * @param pattern the Rexexp pattern to split along
[all …]
/external/guava/android/guava/src/com/google/common/base/
DSplitter.java7 * http://www.apache.org/licenses/LICENSE-2.0
33 * Extracts non-overlapping substrings from an input string, typically by recognizing appearances of
35 * character}, fixed {@linkplain #on(String) string}, {@linkplain #onPattern regular expression} or
42 * Splitter.on(',').split("foo,bar,qux")
52 * Splitter.on(',').split(" foo,,, bar ,")
65 * <p>Now {@code MY_SPLITTER.split("foo,,, bar ,")} returns just {@code ["foo", "bar"]}. Note that
76 * return splitter.split("wrong / wrong / wrong");
79 * <p>For separator-based splitters that do not use {@code omitEmptyStrings}, an input string
82 * containing the entire input. Consequently, all splitters split the empty string to {@code [""]}
83 * (note: even fixed-length splitters).
[all …]
/external/sandboxed-api/oss-internship-2020/libuv/generator/
Dwrapper_generator.py7 # https://www.apache.org/licenses/LICENSE-2.0
27 def get_var_type(string: str) -> str:
31 string: Input variable declaration
34 The type of the argument variable as a string, e.g. "int x" -> "int".
37 var = string.strip()
40 if var in ("void", "...") or var[-1] == "*":
43 return " ".join(var.split(" ")[:-1]).strip()
46 def get_var_name(string: str) -> str:
50 string: Input variable declaration
53 The name of the arguments variable as a string, e.g. "int x" -> "x".
[all …]
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/time/
DStopWatch.java9 * http://www.apache.org/licenses/LICENSE-2.0
32 …* <li>{@link #split()} the watch to get the time whilst the watch continues in the background. {@l…
33 * remove the effect of the split. At this point, these three options are available again.</li>
41 * split or suspend, however a suitable result will be returned at other points.
46 * resume before suspend or unsplit before split.
50 * 1. split(), suspend(), or stop() cannot be invoked twice<br>
51 * 2. unsplit() may only be called if the watch has been split()<br>
56 * <p>This class is not thread-safe</p>
63 * Enumeration type which indicates the split status of stopwatch.
66 SPLIT, enumConstant
[all …]
/external/vogar/src/vogar/
DOutcome.java8 * http://www.apache.org/licenses/LICENSE-2.0
33 private final String outcomeName;
35 private final String output;
38 public Outcome(String outcomeName, Result result, List<String> outputLines) { in Outcome()
45 public Outcome(String outcomeName, Result result, String outputLine, Date date) { in Outcome()
52 public Outcome(String outcomeName, Result result, String outputLine) { in Outcome()
59 public Outcome(String outcomeName, Result result, Throwable throwable) { in Outcome()
66 private String sanitizeOutputLines(List<String> outputLines) { in sanitizeOutputLines()
67 List<String> sanitizedStrings = Lists.newArrayList(); in sanitizeOutputLines()
68 for (String line : outputLines) { in sanitizeOutputLines()
[all …]
/external/parameter-framework/upstream/test/tokenizer/
DTest.cpp36 #include <string>
39 using std::string;
42 using Expected = vector<string>;
48 GIVEN ("A trivial string") {
52 THEN ("split() api should work") {
53 CHECK(tokenizer.split() == expected);
57 GIVEN ("An empty string") {
61 THEN ("split() should be empty") {
62 CHECK(tokenizer.split() == expected);
70 THEN ("split() api should work") {
[all …]
/external/sdv/vsomeip/third_party/boost/algorithm/string/test/
Dsplit_test.cpp1 // Boost string_algo library iterator_test.cpp file ---------------------------//
3 // Copyright Pavol Droba 2002-2003. Use, modification and
10 #include <boost/algorithm/string/config.hpp>
12 #include <boost/algorithm/string/split.hpp>
13 #include <boost/algorithm/string/classification.hpp>
15 #include <boost/algorithm/string/predicate.hpp>
21 #include <string>
44 string str1("xx-abc--xx-abb"); in iterator_test()
45 string str2("Xx-abc--xX-abb-xx"); in iterator_test()
46 string str3("xx"); in iterator_test()
[all …]
/external/slf4j/slf4j-simple/src/test/java/org/slf4j/simple/
DAcceptanceTest.java22 public String extractMessage(String message) { in extractMessage()
24 .split("\n")[0] in extractMessage()
25 .split("- ")[1]; in extractMessage()
29 public String extractExceptionMessage(String message) { in extractExceptionMessage()
30 String[] logLines = message.split("\n"); in extractExceptionMessage()
35 String exceptionLine = logLines[1]; in extractExceptionMessage()
36 return exceptionLine.split(": ")[1]; in extractExceptionMessage()
40 public String extractExceptionType(String message) { in extractExceptionType()
41 String[] logLines = message.split("\n"); in extractExceptionType()
46 String exceptionLine = logLines[1]; in extractExceptionType()
[all …]
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_string_ops.py7 # http://www.apache.org/licenses/LICENSE-2.0
15 """Ragged operations for working with string Tensors."""
45 def string_bytes_split(input, name=None): # pylint: disable=redefined-builtin
46 """Split string elements of `input` into bytes.
56 split strings into unicode characters, use `tf.strings.unicode_split`.
58 See also: `tf.io.decode_raw`, `tf.strings.split`, `tf.strings.unicode_split`.
61 input: A string `Tensor` or `RaggedTensor`: the strings to split. Must
76 raise ValueError("input must have a statically-known rank.")
90 # pylint: disable=redefined-builtin
98 r"""Encodes each sequence of Unicode code points in `input` into a string.
[all …]
/external/tensorflow/tensorflow/core/data/
Dsplit_utils.h7 http://www.apache.org/licenses/LICENSE-2.0
20 #include <string>
32 Status GetNext(Tensor* split, bool* end_of_splits) override;
34 Status Save(std::function<std::string(std::string)> full_name,
36 Status Restore(std::function<std::string(std::string)> full_name,
45 // A SplitProvider which wraps another split provider, but drops all splits
52 Status GetNext(Tensor* split, bool* end_of_splits) override;
54 Status Save(std::function<std::string(std::string)> full_name,
56 Status Restore(std::function<std::string(std::string)> full_name,
67 // Returns split providers for all sources of the given dataset.
[all …]
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/srt/
DSrtParser.java8 * http://www.apache.org/licenses/LICENSE-2.0
30 LineNumberReader r = new LineNumberReader(new InputStreamReader(is, "UTF-8")); in parse()
32 String numberString; in parse()
34 String timeString = r.readLine(); in parse()
35 String lineString = ""; in parse()
36 String s; in parse()
41 long startTime = parse(timeString.split("-->")[0]); in parse()
42 long endTime = parse(timeString.split("-->")[1]); in parse()
50 private static long parse(String in) { in parse()
51 long hours = Long.parseLong(in.split(":")[0].trim()); in parse()
[all …]
/external/jazzer-api/launcher/
Djazzer_main.cpp7 // http://www.apache.org/licenses/LICENSE-2.0
31 const std::string kJazzerClassName = "com/code_intelligence/jazzer/Jazzer";
34 std::vector<std::string> argv) { in StartLibFuzzer()
35 JNIEnv &env = jvm->GetEnv(); in StartLibFuzzer()
63 // startDriver expects UTF-8 encoded strings that are not null-terminated. in StartLibFuzzer()
90 const std::string &arg = argv[i]; in main()
91 std::vector<std::string> split = in main() local
93 if (split.size() < 2) { in main()
96 if (split[0] == "--cp") { in main()
97 FLAGS_cp = split[1]; in main()
[all …]
/external/llvm/utils/Target/ARM/
Danalyze-match-table.py8 lines = data[start:end].split("\n")[1:]
13 ln = ln.split("{", 1)[1]
15 a,bc = ln.split("{", 1)
16 b,c = bc.split("}", 1)
17 code, string, converter, _ = [s.strip()
18 for s in a.split(",")]
19 items = [s.strip() for s in b.split(",")]
20 _,features = [s.strip() for s in c.split(",")]
21 assert string[0] == string[-1] == '"'
22 string = string[1:-1]
[all …]
/external/tensorflow/tensorflow/lite/testing/nnapi_tflite_zip_tests/
Dsplit.h7 http://www.apache.org/licenses/LICENSE-2.0
22 #include <string>
30 // Splits a string based on the given delimiter string. Each pair in the
31 // returned vector has the start and past-the-end positions for each of the
32 // parts of the original string. Empty fields are not represented in the
34 std::vector<std::pair<size_t, size_t>> SplitToPos(const string& s,
35 const string& delimiter);
37 // Splits the given string and converts each part to the given T.
39 std::vector<T> Split(const string& s, const string& delimiter);
42 inline std::vector<string> Split(const string& s, const string& delimiter) { in Split() function
[all …]
/external/ksp/common-util/src/main/kotlin/com/google/devtools/ksp/
DKspOptions.kt3 * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
9 * http://www.apache.org/licenses/LICENSE-2.0
37 val processors: List<String>,
39 val processingOptions: Map<String, String>,
51 val changedClasses: List<String>,
59 val excludedProcessors: Set<String>,
73 val processors: MutableList<String> = mutableListOf()
75 val processingOptions: MutableMap<String, String> = mutableMapOf()
86 // Default is false. It can be turned on to workaround KT-30172.
88 var changedClasses: MutableList<String> = mutableListOf()
[all …]
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/time/
DStopWatchTest.java9 * http://www.apache.org/licenses/LICENSE-2.0
41 private static final String MESSAGE = "Baking cookies";
43 private static final String ZERO_HOURS_PREFIX = "00:";
44 private static final String ZERO_TIME_ELAPSED = "00:00:00.000";
70 FieldUtils.writeField(watch, "startTimeNanos", currentNanos - nanos, true); in createMockStopWatch()
92 assertThrows(IllegalStateException.class, watch::split, in testBadStates()
93 "Calling split on a non-running StopWatch should throw an exception. "); in testBadStates()
148 watch.split(); in testFormatSplitTime()
149 final String formatSplitTime = watch.formatSplitTime(); in testFormatSplitTime()
159 watch.split(); in testFormatSplitTimeWithMessage()
[all …]
/external/tensorflow/tensorflow/lite/delegates/gpu/common/tasks/
Dsplit.h7 http://www.apache.org/licenses/LICENSE-2.0
19 #include <string>
28 class Split : public GPUOperation {
30 Split(const GpuInfo& gpu_info, const OperationDef& definition,
35 Split(Split&& operation) = default;
36 Split& operator=(Split&& operation) = default;
37 Split(const Split&) = delete;
38 Split& operator=(const Split&) = delete;
41 std::string GetSplitCode();
42 std::string GetSplitChannelsCode(const GpuInfo& gpu_info,
[all …]

12345678910>>...49