/third_party/python/Lib/ |
H A D | difflib.py | 731 Each line of a Differ delta begins with a two-letter code: 733 '- ' line unique to sequence 1 734 '+ ' line unique to sequence 2 735 ' ' line common to both sequences 736 '? ' line not present in either input sequence 750 First we set up the texts, sequences of individual single-line strings 774 filter out line and character 'junk'. See Differ.__init__ for details. 795 As a single multi-line string it looks like this: 837 Each sequence must contain individual single-line strings ending with 1008 >>> for line i [all...] |
/foundation/ability/ability_runtime/js_environment/frameworks/js_environment/src/ |
H A D | source_map.cpp | 114 // find per line of stack in TranslateBySourceMap() 127 i = 1; // 1 means Convert from the second line in TranslateBySourceMap() 149 std::string line; in TranslateBySourceMap() local 151 GetPosInfo(temp, closeBracePos, line, column); in TranslateBySourceMap() 152 if (line.empty() || column.empty()) { in TranslateBySourceMap() 153 TAG_LOGW(AAFwkTag::JSENV, "the stack without line info"); in TranslateBySourceMap() 160 sourceInfo = GetSourceInfo(line, column, *(iter->second), key); in TranslateBySourceMap() 173 sourceInfo = GetSourceInfo(line, column, *nonModularMap_, key); in TranslateBySourceMap() 261 // plus a line for each semicolon in ExtractSourceMapData() 365 void SourceMap::GetPosInfo(const std::string& temp, int32_t start, std::string& line, st argument 466 GetSourceInfo(const std::string& line, const std::string& column, const SourceMapData& targetMap, const std::string& key) GetSourceInfo() argument 520 TranslateUrlPositionBySourceMap(std::string& url, int& line, int& column) TranslateUrlPositionBySourceMap() argument 533 GetLineAndColumnNumbers(int& line, int& column, SourceMapData& targetMap, std::string& url) GetLineAndColumnNumbers() argument [all...] |
/kernel/linux/linux-5.10/drivers/tty/serial/ |
H A D | dz.c | 126 u16 tmp, mask = 1 << dport->port.line; in dz_stop_tx() 136 u16 tmp, mask = 1 << dport->port.line; in dz_start_tx() 301 * DS 3100 & 5100: Only valid for the MODEM line, duh! 302 * DS 5000/200: Valid for the MODEM and PRINTER line. 314 /* If not the modem line just return. */ in check_modem_status() 315 if (dport->port.line != DZ_MODEM) in check_modem_status() 365 if (dport->port.line == DZ_MODEM) { in dz_get_mctrl() 381 if (dport->port.line == DZ_MODEM) { in dz_set_mctrl() 477 unsigned short tmp, mask = 1 << dport->port.line; in dz_tx_empty() 493 unsigned short tmp, mask = 1 << dport->port.line; in dz_break_ctl() 762 int line; dz_init_ports() local [all...] |
/kernel/linux/linux-6.6/drivers/tty/serial/ |
H A D | dz.c | 126 u16 tmp, mask = 1 << dport->port.line; in dz_stop_tx() 136 u16 tmp, mask = 1 << dport->port.line; in dz_start_tx() 300 * DS 3100 & 5100: Only valid for the MODEM line, duh! 301 * DS 5000/200: Valid for the MODEM and PRINTER line. 313 /* If not the modem line just return. */ in check_modem_status() 314 if (dport->port.line != DZ_MODEM) in check_modem_status() 364 if (dport->port.line == DZ_MODEM) { in dz_get_mctrl() 380 if (dport->port.line == DZ_MODEM) { in dz_set_mctrl() 476 unsigned short tmp, mask = 1 << dport->port.line; in dz_tx_empty() 492 unsigned short tmp, mask = 1 << dport->port.line; in dz_break_ctl() 764 int line; dz_init_ports() local [all...] |
/kernel/linux/linux-6.6/drivers/gpio/ |
H A D | gpio-virtio.c | 25 struct mutex lock; /* Protects line operation */ 61 struct virtio_gpio_line *line = &vgpio->lines[gpio]; in _virtio_gpio_req() local 62 struct virtio_gpio_request *req = &line->req; in _virtio_gpio_req() 69 * Prevent concurrent requests for the same line since we have in _virtio_gpio_req() 70 * pre-allocated request/response buffers for each GPIO line. Moreover in _virtio_gpio_req() 71 * Linux always accesses a GPIO line sequentially, so this locking shall in _virtio_gpio_req() 74 mutex_lock(&line->lock); in _virtio_gpio_req() 85 line->rxlen = 0; in _virtio_gpio_req() 86 reinit_completion(&line->completion); in _virtio_gpio_req() 93 ret = virtqueue_add_sgs(vgpio->request_vq, sgs, 1, 1, line, GFP_KERNE in _virtio_gpio_req() 129 struct virtio_gpio_line *line = &vgpio->lines[gpio]; virtio_gpio_req() local 438 struct virtio_gpio_line *line; virtio_gpio_request_vq() local [all...] |
/third_party/skia/src/sksl/ |
H A D | SkSLConstantFolder.cpp | 179 static bool error_on_divide_by_zero(const Context& context, int line, Operator op, in error_on_divide_by_zero() argument 187 context.fErrors->error(line, "division by zero"); in error_on_divide_by_zero() 306 static std::unique_ptr<Expression> fold_float_expression(int line, in fold_float_expression() argument 316 return Literal::Make(line, result, resultType); in fold_float_expression() 320 static std::unique_ptr<Expression> fold_int_expression(int line, in fold_int_expression() argument 330 return Literal::Make(line, result, resultType); in fold_int_expression() 334 int line, in Simplify() 369 return Literal::MakeBool(context, line, result); in Simplify() 401 if (error_on_divide_by_zero(context, line, op, *right)) { in Simplify() 430 #define RESULT(Op) fold_int_expression(line, \ in Simplify() 333 Simplify(const Context& context, int line, const Expression& leftExpr, Operator op, const Expression& rightExpr, const Type& resultType) Simplify() argument [all...] |
/foundation/communication/dsoftbus/core/common/dfx/event/src/ |
H A D | stats_event.c | 20 void StatsEventInner(int32_t scene, const char *func, int32_t line, StatsEventExtra *extra)
in StatsEventInner() argument 27 .line = line,
in StatsEventInner()
|
/third_party/elfutils/libdwfl/ |
H A D | dwfl_line_comp_dir.c | 1 /* Get information from a source line record returned by libdwfl. 37 dwfl_line_comp_dir (Dwfl_Line *line) in dwfl_line_comp_dir() argument 39 if (line == NULL) in dwfl_line_comp_dir() 42 struct dwfl_cu *cu = dwfl_linecu (line); in dwfl_line_comp_dir()
|
/third_party/cJSON/tests/unity/examples/example_3/helper/ |
H A D | UnityHelper.c | 6 void AssertEqualExampleStruct(const EXAMPLE_STRUCT_T expected, const EXAMPLE_STRUCT_T actual, const unsigned short line) in AssertEqualExampleStruct() argument 8 UNITY_TEST_ASSERT_EQUAL_INT(expected.x, actual.x, line, "Example Struct Failed For Field x"); in AssertEqualExampleStruct() 9 UNITY_TEST_ASSERT_EQUAL_INT(expected.y, actual.y, line, "Example Struct Failed For Field y"); in AssertEqualExampleStruct()
|
H A D | UnityHelper.h | 6 void AssertEqualExampleStruct(const EXAMPLE_STRUCT_T expected, const EXAMPLE_STRUCT_T actual, const unsigned short line); 8 #define UNITY_TEST_ASSERT_EQUAL_EXAMPLE_STRUCT_T(expected, actual, line, message) AssertEqualExampleStruct(expected, actual, line);
|
/third_party/node/deps/v8/tools/testrunner/outproc/ |
H A D | webkit.py | 14 def _ignore_expected_line(self, line): 16 line.startswith('#') or 17 super(OutProc, self)._ignore_expected_line(line)
|
/third_party/unity/examples/example_3/helper/ |
H A D | UnityHelper.c | 6 void AssertEqualExampleStruct(const EXAMPLE_STRUCT_T expected, const EXAMPLE_STRUCT_T actual, const unsigned short line) in AssertEqualExampleStruct() argument 8 UNITY_TEST_ASSERT_EQUAL_INT(expected.x, actual.x, line, "Example Struct Failed For Field x"); in AssertEqualExampleStruct() 9 UNITY_TEST_ASSERT_EQUAL_INT(expected.y, actual.y, line, "Example Struct Failed For Field y"); in AssertEqualExampleStruct()
|
H A D | UnityHelper.h | 6 void AssertEqualExampleStruct(const EXAMPLE_STRUCT_T expected, const EXAMPLE_STRUCT_T actual, const unsigned short line); 8 #define UNITY_TEST_ASSERT_EQUAL_EXAMPLE_STRUCT_T(expected, actual, line, message) AssertEqualExampleStruct(expected, actual, line);
|
/third_party/node/deps/openssl/openssl/providers/fips/ |
H A D | fipsprov.c | 772 void ERR_set_debug(const char *file, int line, const char *func) in ERR_set_debug() argument 774 c_set_error_debug(NULL, file, line, func); in ERR_set_debug() 825 void *CRYPTO_malloc(size_t num, const char *file, int line) in CRYPTO_malloc() argument 827 return c_CRYPTO_malloc(num, file, line); in CRYPTO_malloc() 830 void *CRYPTO_zalloc(size_t num, const char *file, int line) in CRYPTO_zalloc() argument 832 return c_CRYPTO_zalloc(num, file, line); in CRYPTO_zalloc() 835 void CRYPTO_free(void *ptr, const char *file, int line) in CRYPTO_free() argument 837 c_CRYPTO_free(ptr, file, line); in CRYPTO_free() 840 void CRYPTO_clear_free(void *ptr, size_t num, const char *file, int line) in CRYPTO_clear_free() argument 842 c_CRYPTO_clear_free(ptr, num, file, line); in CRYPTO_clear_free() 845 CRYPTO_realloc(void *addr, size_t num, const char *file, int line) CRYPTO_realloc() argument 850 CRYPTO_clear_realloc(void *addr, size_t old_num, size_t num, const char *file, int line) CRYPTO_clear_realloc() argument 856 CRYPTO_secure_malloc(size_t num, const char *file, int line) CRYPTO_secure_malloc() argument 861 CRYPTO_secure_zalloc(size_t num, const char *file, int line) CRYPTO_secure_zalloc() argument 866 CRYPTO_secure_free(void *ptr, const char *file, int line) CRYPTO_secure_free() argument 871 CRYPTO_secure_clear_free(void *ptr, size_t num, const char *file, int line) CRYPTO_secure_clear_free() argument [all...] |
/third_party/openssl/providers/fips/ |
H A D | fipsprov.c | 772 void ERR_set_debug(const char *file, int line, const char *func) in ERR_set_debug() argument 774 c_set_error_debug(NULL, file, line, func); in ERR_set_debug() 825 void *CRYPTO_malloc(size_t num, const char *file, int line) in CRYPTO_malloc() argument 827 return c_CRYPTO_malloc(num, file, line); in CRYPTO_malloc() 830 void *CRYPTO_zalloc(size_t num, const char *file, int line) in CRYPTO_zalloc() argument 832 return c_CRYPTO_zalloc(num, file, line); in CRYPTO_zalloc() 835 void CRYPTO_free(void *ptr, const char *file, int line) in CRYPTO_free() argument 837 c_CRYPTO_free(ptr, file, line); in CRYPTO_free() 840 void CRYPTO_clear_free(void *ptr, size_t num, const char *file, int line) in CRYPTO_clear_free() argument 842 c_CRYPTO_clear_free(ptr, num, file, line); in CRYPTO_clear_free() 845 CRYPTO_realloc(void *addr, size_t num, const char *file, int line) CRYPTO_realloc() argument 850 CRYPTO_clear_realloc(void *addr, size_t old_num, size_t num, const char *file, int line) CRYPTO_clear_realloc() argument 856 CRYPTO_secure_malloc(size_t num, const char *file, int line) CRYPTO_secure_malloc() argument 861 CRYPTO_secure_zalloc(size_t num, const char *file, int line) CRYPTO_secure_zalloc() argument 866 CRYPTO_secure_free(void *ptr, const char *file, int line) CRYPTO_secure_free() argument 871 CRYPTO_secure_clear_free(void *ptr, size_t num, const char *file, int line) CRYPTO_secure_clear_free() argument [all...] |
/kernel/linux/linux-5.10/tools/power/pm-graph/ |
H A D | sleepgraph.py | 326 msg = 'Signal %s caused a tool exit, line %d' % (signame, frame.f_lineno) 428 for line in fp: 429 if re.match('^processor[ \t]*:[ \t]*[0-9]*', line): 433 for line in fp: 434 m = re.match('^MemTotal:[ \t]*(?P<sz>[0-9]*) *kB', line) 437 m = re.match('^MemFree:[ \t]*(?P<sz>[0-9]*) *kB', line) 495 for line in fp: 496 line = ascii(line).replace('\r\n', '') 497 idx = line [all...] |
/third_party/curl/tests/ |
H A D | ftpserver.pl | 37 # You may optionally specify port on the command line, otherwise it'll 338 "line $lcaller. Due to eXsysread() failure\n"; 362 "line $lcaller. Due to eXsysread() failure\n"; 383 "line $lcaller. $srvrname server, sysread error: $!\n"; 398 "line $lcaller. $srvrname server, read zero\n"; 680 my $line; 682 while (5 == ($nr = sysread DREAD, $line, 5)) { 683 if($line eq "DATA\n") { 693 read_datasockf(\$line, $size); 697 elsif($line e [all...] |
/third_party/python/Parser/ |
H A D | tokenizer.c | 159 * the only statement on the source code line. */ in get_coding_spec() 202 /* Check whether the line contains a coding spec. If it does, 208 check_coding_spec(const char* line, Py_ssize_t size, struct tok_state *tok, in check_coding_spec() argument 213 /* It's a continuation line, so it can't be a coding spec. */ in check_coding_spec() 217 if (!get_coding_spec(line, &cs, size, tok)) { in check_coding_spec() 223 if (line[i] == '#' || line[i] == '\n' || line[i] == '\r') in check_coding_spec() 225 if (line[i] != ' ' && line[ in check_coding_spec() 300 tok_concatenate_interactive_new_line(struct tok_state *tok, const char *line) tok_concatenate_interactive_new_line() argument 386 PyObject *line; tok_readline_recode() local 560 ensure_utf8(char *line, struct tok_state *tok) ensure_utf8() argument 841 char *line = _Py_UniversalNewlineFgetsWithSize(tok->inp, n_chars, tok->fp, NULL, &line_size); tok_readline_raw() local [all...] |
/third_party/vk-gl-cts/external/vulkancts/scripts/ |
H A D | ohos_gen_framework.py | 853 for line in indentLines(genHandles()): 854 yield line 891 for line in indentLines(lines): 892 yield line 913 for line in indentLines(lines): 914 yield line 935 for line in indentLines(lines): 936 yield line 946 for line in indentLines(genLines(defines)): 947 yield line [all...] |
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/ |
H A D | write_controller.cpp | 55 uint64_t ConcatenateInfoAsKey(const char* eventName, const char* func, int64_t line) in ConcatenateInfoAsKey() argument 58 key.append(eventName).append("_").append(func).append("_").append(std::to_string(line)); in ConcatenateInfoAsKey() 140 uint64_t key = ConcatenateInfoAsKey(eventName, callerInfo.func, callerInfo.line); in CheckLimitWritingEvent() 167 const char* eventName, const char* func, int64_t line) in CheckLimitWritingEvent() 171 .line = line, in CheckLimitWritingEvent() 166 CheckLimitWritingEvent(const ControlParam& param, const char* domain, const char* eventName, const char* func, int64_t line) CheckLimitWritingEvent() argument
|
/foundation/ai/intelligent_voice_framework/utils/ |
H A D | string_util.cpp | 117 bool StringUtil::SplitLineToPair(const std::string &line, std::string &first, std::string &second) in SplitLineToPair() argument 119 if (line.empty()) { in SplitLineToPair() 120 INTELL_VOICE_LOG_ERROR("line is empty"); in SplitLineToPair() 124 size_t pos = line.find(DELIMITER_EQUAL_SIGN); in SplitLineToPair() 126 if (string::npos == pos || (line.length() - 1) == pos) { in SplitLineToPair() 130 first = line.substr(0, pos); in SplitLineToPair() 131 second = line.substr(pos + 1, string::npos); in SplitLineToPair() 137 INTELL_VOICE_LOG_ERROR("line is invalid, first:%{public}s, second:%{public}s", first.c_str(), second.c_str()); in SplitLineToPair()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_base.cpp | 67 for (const auto& line : lineGroup) { in CalculateSelectedRect() 68 if (line == end) { in CalculateSelectedRect() 71 auto rect = RectF(line.second.Left(), lastLineBottom, longestLine - line.second.Left(), in CalculateSelectedRect() 72 line.second.Bottom() - lastLineBottom); in CalculateSelectedRect() 74 lastLineBottom = line.second.Bottom(); in CalculateSelectedRect()
|
/kernel/linux/linux-5.10/arch/sparc/boot/ |
H A D | piggyback.c | 71 static int start_line(const char *line) in start_line() argument 73 if (strcmp(line + 10, " _start\n") == 0) in start_line() 75 else if (strcmp(line + 18, " _start\n") == 0) in start_line() 80 static int end_line(const char *line) in end_line() argument 82 if (strcmp(line + 10, " _end\n") == 0) in end_line() 84 else if (strcmp (line + 18, " _end\n") == 0) in end_line()
|
/kernel/linux/linux-6.6/arch/sparc/boot/ |
H A D | piggyback.c | 71 static int start_line(const char *line) in start_line() argument 73 if (strcmp(line + 10, " _start\n") == 0) in start_line() 75 else if (strcmp(line + 18, " _start\n") == 0) in start_line() 80 static int end_line(const char *line) in end_line() argument 82 if (strcmp(line + 10, " _end\n") == 0) in end_line() 84 else if (strcmp (line + 18, " _end\n") == 0) in end_line()
|
/kernel/linux/linux-5.10/drivers/tty/serial/8250/ |
H A D | 8250_men_mcb.c | 20 int line; member 123 data[i].line = serial8250_register_8250_port(&data[i].uart); in serial_8250_men_mcb_probe() 124 if (data[i].line < 0) { in serial_8250_men_mcb_probe() 126 return data[i].line; in serial_8250_men_mcb_probe() 128 dev_info(&mdev->dev, "found MCB UART: ttyS%d\n", data[i].line); in serial_8250_men_mcb_probe() 149 serial8250_unregister_port(data[i].line); in serial_8250_men_mcb_remove()
|