| /external/llvm/utils/unittest/googletest/src/ |
| D | gtest-port.cc | 32 #include "gtest/internal/gtest-port.h" 54 #include "gtest/gtest-spi.h" 55 #include "gtest/gtest-message.h" 56 #include "gtest/internal/gtest-internal.h" 57 #include "gtest/internal/gtest-string.h" 60 // implementation. It must come before gtest-internal-inl.h is 62 // prevent a user from accidentally including gtest-internal-inl.h in 65 #include "src/gtest-internal-inl.h" 117 // regfree'ing an invalid regex might crash because the content in ~RE() 118 // of the regex is undefined. Since the regex's are essentially in ~RE() [all …]
|
| /external/selinux/libselinux/src/ |
| D | regex.c | 7 #include "regex.h" 34 static int match_data_key_initialized = -1; 36 static __thread char match_data_initialized; 38 char const *regex_arch_string(void) in regex_arch_string() 40 static char arch_string_buffer[32]; in regex_arch_string() 41 static char const *arch_string = ""; in regex_arch_string() 42 char const *endianness = NULL; in regex_arch_string() 55 "%zu-%zu-%s", sizeof(void *), in regex_arch_string() 67 pcre2_code *regex; /* compiled regular expression */ member 70 int regex_prepare_data(struct regex_data **regex, char const *pattern_string, in regex_prepare_data() argument [all …]
|
| D | label_file.h | 12 * regex.h/c were introduced to hold all dependencies on the regular 13 * expression back-end when we started supporting PCRE2. regex.h defines a 17 #include "regex.h" 39 char *src; 41 char *dst; 48 char *regex_str; /* regular expression string for diagnostics */ 49 char *type_str; /* type string for diagnostic messages */ 50 struct regex_data * regex; /* backend dependent regular expression data */ member 51 bool regex_compiled; /* bool to indicate if the regex is compiled */ 52 pthread_mutex_t regex_lock; /* lock for lazy compilation of regex */ [all …]
|
| /external/sdv/vsomeip/third_party/boost/regex/doc/ |
| D | old_regex.qbk | 2 Copyright 2006-2007 John Maddock. 9 [section:old_regex High Level Class RegEx (Deprecated)] 11 The high level wrapper class RegEx is now deprecated and does not form 18 The class RegEx provides a high level simplified interface to the regular 20 regular expressions always follow the "normal" syntax - that is the 23 typedef bool (*GrepCallback)(const RegEx& expression); 24 typedef bool (*GrepFileCallback)(const char* file, const RegEx& expression); 25 typedef bool (*FindFilesCallback)(const char* file); 27 class RegEx 30 RegEx(); [all …]
|
| /external/libvpx/third_party/googletest/src/src/ |
| D | gtest-port.cc | 30 #include "gtest/internal/gtest-port.h" 84 #include "gtest/gtest-message.h" 85 #include "gtest/gtest-spi.h" 86 #include "gtest/internal/gtest-internal.h" 87 #include "gtest/internal/gtest-string.h" 88 #include "src/gtest-internal-inl.h" 100 while (field-- > 0) { in ReadProcFileField() 204 if (info[i].p_tid != -1) nthreads++; 308 // Static mutexes are leaked intentionally. It is not thread-safe to try in ~Mutex() 455 if (param->thread_can_start_ != nullptr) in ThreadMain() [all …]
|
| /external/libaom/third_party/googletest/src/googletest/src/ |
| D | gtest-port.cc | 30 #include "gtest/internal/gtest-port.h" 84 #include "gtest/gtest-message.h" 85 #include "gtest/gtest-spi.h" 86 #include "gtest/internal/gtest-internal.h" 87 #include "gtest/internal/gtest-string.h" 88 #include "src/gtest-internal-inl.h" 100 while (field-- > 0) { in ReadProcFileField() 204 if (info[i].p_tid != -1) nthreads++; 308 // Static mutexes are leaked intentionally. It is not thread-safe to try in ~Mutex() 455 if (param->thread_can_start_ != nullptr) in ThreadMain() [all …]
|
| /external/mesa3d/src/gtest/src/ |
| D | gtest-port.cc | 30 #include "gtest/internal/gtest-port.h" 84 #include "gtest/gtest-message.h" 85 #include "gtest/gtest-spi.h" 86 #include "gtest/internal/gtest-internal.h" 87 #include "gtest/internal/gtest-string.h" 88 #include "src/gtest-internal-inl.h" 100 while (field-- > 0) { in ReadProcFileField() 204 if (info[i].p_tid != -1) nthreads++; 308 // Static mutexes are leaked intentionally. It is not thread-safe to try in ~Mutex() 455 if (param->thread_can_start_ != nullptr) in ThreadMain() [all …]
|
| /external/cronet/third_party/googletest/src/googletest/src/ |
| D | gtest-port.cc | 30 #include "gtest/internal/gtest-port.h" 84 #include "gtest/gtest-message.h" 85 #include "gtest/gtest-spi.h" 86 #include "gtest/internal/gtest-internal.h" 87 #include "gtest/internal/gtest-string.h" 88 #include "src/gtest-internal-inl.h" 109 while (field-- > 0) { in ReadProcFileField() 213 if (info[i].p_tid != -1) nthreads++; in GetThreadCount() 317 // Static mutexes are leaked intentionally. It is not thread-safe to try in ~Mutex() 463 if (param->thread_can_start_ != nullptr) in ThreadMain() [all …]
|
| /external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/src/ |
| D | gtest-port.cc | 31 #include "gtest/internal/gtest-port.h" 83 #include "gtest/gtest-spi.h" 84 #include "gtest/gtest-message.h" 85 #include "gtest/internal/gtest-internal.h" 86 #include "gtest/internal/gtest-string.h" 87 #include "src/gtest-internal-inl.h" 108 while (field-- > 0) { in ReadProcFileField() 213 if (info[i].p_tid != -1) in GetThreadCount() 351 // Static mutexes are leaked intentionally. It is not thread-safe to try in ~Mutex() 502 if (param->thread_can_start_ != nullptr) in ThreadMain() [all …]
|
| /external/googletest/googletest/src/ |
| D | gtest-port.cc | 30 #include "gtest/internal/gtest-port.h" 90 #include "gtest/gtest-message.h" 91 #include "gtest/gtest-spi.h" 92 #include "gtest/internal/gtest-internal.h" 93 #include "gtest/internal/gtest-string.h" 94 #include "src/gtest-internal-inl.h" 106 while (field-- > 0) { in ReadProcFileField() 210 if (info[i].p_tid != -1) nthreads++; 314 // Static mutexes are leaked intentionally. It is not thread-safe to try in ~Mutex() 461 if (param->thread_can_start_ != nullptr) in ThreadMain() [all …]
|
| /external/cronet/third_party/boringssl/src/third_party/googletest/googletest/src/ |
| D | gtest-port.cc | 30 #include "gtest/internal/gtest-port.h" 90 #include "gtest/gtest-message.h" 91 #include "gtest/gtest-spi.h" 92 #include "gtest/internal/gtest-internal.h" 93 #include "gtest/internal/gtest-string.h" 94 #include "src/gtest-internal-inl.h" 106 while (field-- > 0) { in ReadProcFileField() 210 if (info[i].p_tid != -1) nthreads++; 314 // Static mutexes are leaked intentionally. It is not thread-safe to try in ~Mutex() 461 if (param->thread_can_start_ != nullptr) in ThreadMain() [all …]
|
| /external/jazzer-api/sanitizers/src/main/java/com/code_intelligence/jazzer/sanitizers/ |
| D | RegexRoadblocks.java | 7 // http://www.apache.org/licenses/LICENSE-2.0 28 import java.util.regex.Matcher; 29 import java.util.regex.Pattern; 68 @MethodHook(type = HookType.AFTER, targetClassName = "java.util.regex.Pattern$Node", 70 targetMethodDescriptor = "(Ljava/util/regex/Matcher;ILjava/lang/CharSequence;)Z", 73 "java.util.regex.Matcher", 74 "java.util.regex.Pattern$BackRef", 75 "java.util.regex.Pattern$Behind", 76 "java.util.regex.Pattern$BehindS", 77 "java.util.regex.Pattern$BmpCharProperty", [all …]
|
| /external/jimfs/jimfs/src/main/java/com/google/common/jimfs/ |
| D | GlobToRegex.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 23 import java.util.regex.PatternSyntaxException; 26 * Translates globs to regex patterns. 43 * [a-z] = [[^/]&&[a-z]] 44 * [!a-z] = [[^/]&&[^a-z]] 70 * Converts the glob to a regex one character at a time. A state stack (states) is maintained, 73 * pop the current state or push a new state as the current state. The resulting regex is written 105 /** Appends the given character as-is to the regex. */ 106 private void appendExact(char c) { in appendExact() 110 /** Appends the regex form of the given normal character or separator from the glob. */ [all …]
|
| /external/sdv/vsomeip/third_party/boost/regex/include/boost/regex/v5/ |
| D | regex.hpp | 3 * Copyright (c) 1998-2002 14 * FILE regex.cpp 18 * entry point for the template regex code. 28 #include <boost/regex/config.hpp> 29 #include <boost/regex/v5/regex_workaround.hpp> 31 #include <boost/regex/regex_traits.hpp> 32 #include <boost/regex/v5/error_type.hpp> 33 #include <boost/regex/v5/match_flags.hpp> 34 #include <boost/regex/v5/regex_raw_buffer.hpp> 35 #include <boost/regex/pattern_except.hpp> [all …]
|
| /external/libese/ready_se/google/keymint/KM200/HAL/ |
| D | keymint_utils.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 18 #include <regex.h> 20 #include <android-base/properties.h> 26 constexpr char kPlatformVersionProp[] = "ro.build.version.release"; 27 constexpr char kPlatformVersionRegex[] = "^([0-9]{1,2})(\\.([0-9]{1,2}))?(\\.([0-9]{1,2}))?"; 33 constexpr char kPlatformPatchlevelProp[] = "ro.build.version.security_patch"; 34 constexpr char kVendorPatchlevelProp[] = "ro.vendor.build.security_patch"; 35 constexpr char kPatchlevelRegex[] = "^([0-9]{4})-([0-9]{2})-([0-9]{2})$"; 41 uint32_t match_to_uint32(const char* expression, const regmatch_t& match) { in match_to_uint32() 42 if (match.rm_so == -1) return 0; in match_to_uint32() [all …]
|
| /external/libese/ready_se/google/keymint/KM300/HAL/ |
| D | keymint_utils.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 18 #include <regex.h> 20 #include <android-base/properties.h> 26 constexpr char kPlatformVersionProp[] = "ro.build.version.release"; 27 constexpr char kPlatformVersionRegex[] = "^([0-9]{1,2})(\\.([0-9]{1,2}))?(\\.([0-9]{1,2}))?"; 33 constexpr char kPlatformPatchlevelProp[] = "ro.build.version.security_patch"; 34 constexpr char kVendorPatchlevelProp[] = "ro.vendor.build.security_patch"; 35 constexpr char kPatchlevelRegex[] = "^([0-9]{4})-([0-9]{2})-([0-9]{2})$"; 41 uint32_t match_to_uint32(const char* expression, const regmatch_t& match) { in match_to_uint32() 42 if (match.rm_so == -1) return 0; in match_to_uint32() [all …]
|
| /external/cronet/third_party/libc++/src/test/std/re/re.alg/re.alg.replace/ |
| D | test2.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // <regex> 21 #include <regex> 27 int main(int, char**) in main() argument 30 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 31 const char phone_book[] = "555-1234, 555-2345, 555-3456"; in main() 32 typedef cpp17_output_iterator<char*> Out; in main() 33 typedef bidirectional_iterator<const char*> Bi; in main() [all …]
|
| D | test1.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // <regex> 21 #include <regex> 27 int main(int, char**) in main() argument 30 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 31 const char phone_book[] = "555-1234, 555-2345, 555-3456"; in main() 32 typedef cpp17_output_iterator<char*> Out; in main() 33 typedef bidirectional_iterator<const char*> Bi; in main() [all …]
|
| D | test6.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // <regex> 19 #include <regex> 23 int main(int, char**) in main() argument 26 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 27 const char phone_book[] = "555-1234, 555-2345, 555-3456"; in main() 29 "123-$&"); in main() 30 assert(r == "123-555-1234, 123-555-2345, 123-555-3456"); in main() [all …]
|
| /external/libcxx/test/std/re/re.alg/re.alg.replace/ |
| D | test2.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 10 // <regex> 22 #include <regex> 31 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 32 const char phone_book[] = "555-1234, 555-2345, 555-3456"; in main() 33 typedef output_iterator<char*> Out; in main() 34 typedef bidirectional_iterator<const char*> Bi; in main() 35 char buf[100] = {0}; in main() 37 Bi(std::end(phone_book)-1), phone_numbers, in main() [all …]
|
| D | test1.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 10 // <regex> 22 #include <regex> 31 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 32 const char phone_book[] = "555-1234, 555-2345, 555-3456"; in main() 33 typedef output_iterator<char*> Out; in main() 34 typedef bidirectional_iterator<const char*> Bi; in main() 35 char buf[100] = {0}; in main() 37 Bi(std::end(phone_book)-1), phone_numbers, in main() [all …]
|
| /external/sdv/vsomeip/third_party/boost/regex/include/boost/regex/v4/ |
| D | regex.hpp | 3 * Copyright (c) 1998-2002 14 * FILE regex.cpp 18 * entry point for the template regex code. 29 #include <boost/regex/config.hpp> 32 #include <boost/regex/v4/regex_workaround.hpp> 39 #include <boost/regex/regex_traits.hpp> 42 #include <boost/regex/v4/error_type.hpp> 45 #include <boost/regex/v4/match_flags.hpp> 48 #include <boost/regex/v4/regex_raw_buffer.hpp> 51 #include <boost/regex/pattern_except.hpp> [all …]
|
| /external/selinux/libselinux/utils/ |
| D | sefcontext_compile.c | 15 #include "../src/regex.h" 17 static const char *policy_file; 20 static int validate_context(char **ctxp) in validate_context() 22 char *ctx = *ctxp; in validate_context() 25 ctx_err = -1; in validate_context() 32 static int process_file(struct selabel_handle *rec, const char *filename) in process_file() 36 char *line_buf = NULL; in process_file() 39 const char *prefix = NULL; in process_file() 45 return -1; in process_file() 53 /* With -p option need to check and fail if ctx err as in process_file() [all …]
|
| /external/libcxx/test/std/re/re.alg/re.alg.match/ |
| D | ecma.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 13 // REQUIRES: locale.cs_CZ.ISO8859-2 15 // <regex> 25 // XFAIL: linux-gnu 27 #include <regex> 38 const char s[] = "a"; in main() 39 assert(std::regex_match(s, m, std::regex("a"))); in main() 54 const char s[] = "ab"; in main() 55 assert(std::regex_match(s, m, std::regex("ab"))); in main() [all …]
|
| /external/cronet/third_party/libc++/src/test/std/re/re.regex/re.regex.construct/ |
| D | bad_backref.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // UNSUPPORTED: no-exceptions 10 // <regex> 17 #include <regex> 21 static bool error_badbackref_thrown(const char *pat, std::regex::flag_type f) in error_badbackref_thrown() 25 std::regex re(pat, f); in error_badbackref_thrown() 32 int main(int, char**) in main() argument 36 assert(error_badbackref_thrown("\\1abd", std::regex::basic)); in main() [all …]
|