/dports/textproc/stardict3/stardict-3.0.6/lib/src/ |
H A D | ifo_file.cpp | 98 const char* DictInfo::get_key_value(const char *line_beg, std::string& key, in get_key_value() argument 104 const size_t n1 = strcspn(line_beg, "\r\n"); in get_key_value() 105 const size_t n2 = strspn(line_beg, " \t"); in get_key_value() 106 const char* const line_end = line_beg + n1; in get_key_value() 116 line_beg = skip_new_line(line_end); in get_key_value() 120 const char* const key_beg = line_beg + n2; // first non-blank char in get_key_value() 126 line_beg = skip_new_line(line_end); in get_key_value() 141 line_beg = skip_new_line(line_end); in get_key_value() 143 return line_beg; in get_key_value()
|
H A D | lib_dict_data_block.cpp | 578 const char* line_beg = data; in verify_field_content_r() local 587 const gint size_remain = static_cast<gint>(size) - (line_beg - data); in verify_field_content_r() 590 line_end = (const char*)memchr(line_beg, '\n', size_remain); in verify_field_content_r() 593 if(line_beg == line_end) { in verify_field_content_r() 599 ++line_beg; in verify_field_content_r() 605 const std::string line(line_beg, line_end - line_beg); in verify_field_content_r() 606 const char* colon = (const char*)memchr(line_beg, ':', line_end - line_beg); in verify_field_content_r() 613 line_beg = line_end + 1; in verify_field_content_r() 619 resitem.type.assign(line_beg, colon - line_beg); in verify_field_content_r() 622 line_beg = line_end + 1; in verify_field_content_r()
|
/dports/multimedia/tinyobjloader/tinyobjloader-2.0.0rc8-3-g7ba4b65/tests/ |
H A D | acutest.h | 614 char* line_beg; in test_message__() local 631 line_beg = buffer; in test_message__() 633 line_end = strchr(line_beg, '\n'); in test_message__() 637 printf("%.*s\n", (int)(line_end - line_beg), line_beg); in test_message__() 638 line_beg = line_end + 1; in test_message__() 640 if(line_beg[0] != '\0') { in test_message__() 642 printf("%s\n", line_beg); in test_message__() 650 size_t line_beg; in test_dump__() local 669 for(line_beg = 0; line_beg < size; line_beg += BYTES_PER_LINE) { in test_dump__() 670 size_t line_end = line_beg + BYTES_PER_LINE; in test_dump__() [all …]
|
/dports/mail/neomutt/neomutt-20211029/test/ |
H A D | acutest.h | 758 char* line_beg; in acutest_message_() local 775 line_beg = buffer; in acutest_message_() 777 line_end = strchr(line_beg, '\n'); in acutest_message_() 781 printf("%.*s\n", (int)(line_end - line_beg), line_beg); in acutest_message_() 782 line_beg = line_end + 1; in acutest_message_() 784 if(line_beg[0] != '\0') { in acutest_message_() 786 printf("%s\n", line_beg); in acutest_message_() 794 size_t line_beg; in acutest_dump_() local 813 for(line_beg = 0; line_beg < size; line_beg += BYTES_PER_LINE) { in acutest_dump_() 814 size_t line_end = line_beg + BYTES_PER_LINE; in acutest_dump_() [all …]
|
/dports/net/nng/nng-1.5.2/src/testing/ |
H A D | acutest.h | 750 char* line_beg; in test_message_() local 767 line_beg = buffer; in test_message_() 769 line_end = strchr(line_beg, '\n'); in test_message_() 773 printf("%.*s\n", (int)(line_end - line_beg), line_beg); in test_message_() 774 line_beg = line_end + 1; in test_message_() 776 if(line_beg[0] != '\0') { in test_message_() 778 printf("%s\n", line_beg); in test_message_() 786 size_t line_beg; in test_dump_() local 805 for(line_beg = 0; line_beg < size; line_beg += BYTES_PER_LINE) { in test_dump_() 806 size_t line_end = line_beg + BYTES_PER_LINE; in test_dump_() [all …]
|
/dports/sysutils/fluent-bit/fluent-bit-1.8.11/tests/lib/acutest/ |
H A D | acutest.h | 734 char* line_beg; in __construct() 751 line_beg = buffer; in __construct() 753 line_end = strchr(line_beg, '\n'); in __construct() 757 printf("%.*s\n", (int)(line_end - line_beg), line_beg); in __construct() 758 line_beg = line_end + 1; in __construct() 760 if(line_beg[0] != '\0') { in __construct() 762 printf("%s\n", line_beg); in __construct() 770 size_t line_beg; in __construct() 789 for(line_beg = 0; line_beg < size; line_beg += BYTES_PER_LINE) { in __construct() 790 size_t line_end = line_beg + BYTES_PER_LINE; in __construct() [all …]
|
/dports/sysutils/fluent-bit/fluent-bit-1.8.11/lib/cmetrics/tests/lib/acutest/ |
H A D | acutest.h | 749 char* line_beg; in acutest_message_() local 766 line_beg = buffer; in acutest_message_() 768 line_end = strchr(line_beg, '\n'); in acutest_message_() 772 printf("%.*s\n", (int)(line_end - line_beg), line_beg); in acutest_message_() 773 line_beg = line_end + 1; in acutest_message_() 775 if(line_beg[0] != '\0') { in acutest_message_() 777 printf("%s\n", line_beg); in acutest_message_() 785 size_t line_beg; in acutest_dump_() local 804 for(line_beg = 0; line_beg < size; line_beg += BYTES_PER_LINE) { in acutest_dump_() 805 size_t line_end = line_beg + BYTES_PER_LINE; in acutest_dump_() [all …]
|
/dports/sysutils/fluent-bit/fluent-bit-1.8.11/lib/chunkio/tests/lib/acutest/include/ |
H A D | acutest.h | 319 char* line_beg; in test_message__() local 336 line_beg = buffer; in test_message__() 338 line_end = strchr(line_beg, '\n'); in test_message__() 341 printf(" %.*s\n", (int)(line_end - line_beg), line_beg); in test_message__() 342 line_beg = line_end + 1; in test_message__() 344 if(line_beg[0] != '\0') in test_message__() 345 printf(" %s\n", line_beg); in test_message__()
|
/dports/textproc/R-cran-sass/sass/src/libsass/src/ |
H A D | sass_context.cpp | 85 const char* line_beg; in handle_error() local 86 for (line_beg = e.pstate.getRawData(); *line_beg != '\0'; ++line_beg) { in handle_error() 88 if (*line_beg == '\n') --lines; in handle_error() 92 for (line_end = line_beg; *line_end != '\0'; ++line_end) { in handle_error() 96 size_t line_len = line_end - line_beg; in handle_error() 103 utf8::advance(line_beg, move_in, line_end); in handle_error() 104 utf8::retreat(line_end, shorten, line_beg); in handle_error() 106 utf8::replace_invalid(line_beg, line_end, std::back_inserter(sanitized)); in handle_error()
|
/dports/www/py-libsass/libsass-0.21.0/libsass/src/ |
H A D | sass_context.cpp | 86 const char* line_beg; in handle_error() local 87 for (line_beg = e.pstate.getRawData(); *line_beg != '\0'; ++line_beg) { in handle_error() 89 if (*line_beg == '\n') --lines; in handle_error() 93 for (line_end = line_beg; *line_end != '\0'; ++line_end) { in handle_error() 97 size_t line_len = line_end - line_beg; in handle_error() 104 utf8::advance(line_beg, move_in, line_end); in handle_error() 105 utf8::retreat(line_end, shorten, line_beg); in handle_error() 107 utf8::replace_invalid(line_beg, line_end, std::back_inserter(sanitized)); in handle_error()
|
/dports/www/gohugo/hugo-0.91.2/vendor/github.com/bep/golibsass/libsass_src/src/ |
H A D | sass_context.cpp | 86 const char* line_beg; in handle_error() local 87 for (line_beg = e.pstate.getRawData(); *line_beg != '\0'; ++line_beg) { in handle_error() 89 if (*line_beg == '\n') --lines; in handle_error() 93 for (line_end = line_beg; *line_end != '\0'; ++line_end) { in handle_error() 97 size_t line_len = line_end - line_beg; in handle_error() 104 utf8::advance(line_beg, move_in, line_end); in handle_error() 105 utf8::retreat(line_end, shorten, line_beg); in handle_error() 107 utf8::replace_invalid(line_beg, line_end, std::back_inserter(sanitized)); in handle_error()
|
/dports/textproc/libsass/libsass-3.6.4/src/ |
H A D | sass_context.cpp | 85 const char* line_beg; in handle_error() local 86 for (line_beg = e.pstate.getRawData(); *line_beg != '\0'; ++line_beg) { in handle_error() 88 if (*line_beg == '\n') --lines; in handle_error() 92 for (line_end = line_beg; *line_end != '\0'; ++line_end) { in handle_error() 96 size_t line_len = line_end - line_beg; in handle_error() 103 utf8::advance(line_beg, move_in, line_end); in handle_error() 104 utf8::retreat(line_end, shorten, line_beg); in handle_error() 106 utf8::replace_invalid(line_beg, line_end, std::back_inserter(sanitized)); in handle_error()
|
/dports/textproc/p5-CSS-Sass/CSS-Sass-3.6.4/libsass/src/ |
H A D | sass_context.cpp | 86 const char* line_beg; in handle_error() local 87 for (line_beg = e.pstate.getRawData(); *line_beg != '\0'; ++line_beg) { in handle_error() 89 if (*line_beg == '\n') --lines; in handle_error() 93 for (line_end = line_beg; *line_end != '\0'; ++line_end) { in handle_error() 97 size_t line_len = line_end - line_beg; in handle_error() 104 utf8::advance(line_beg, move_in, line_end); in handle_error() 105 utf8::retreat(line_end, shorten, line_beg); in handle_error() 107 utf8::replace_invalid(line_beg, line_end, std::back_inserter(sanitized)); in handle_error()
|
/dports/www/zola/zola-0.15.2/cargo-crates/sass-sys-0.4.22/libsass/src/ |
H A D | sass_context.cpp | 85 const char* line_beg; in handle_error() local 86 for (line_beg = e.pstate.getRawData(); *line_beg != '\0'; ++line_beg) { in handle_error() 88 if (*line_beg == '\n') --lines; in handle_error() 92 for (line_end = line_beg; *line_end != '\0'; ++line_end) { in handle_error() 96 size_t line_len = line_end - line_beg; in handle_error() 103 utf8::advance(line_beg, move_in, line_end); in handle_error() 104 utf8::retreat(line_end, shorten, line_beg); in handle_error() 106 utf8::replace_invalid(line_beg, line_end, std::back_inserter(sanitized)); in handle_error()
|
/dports/ftp/wget/wget-1.21.2/src/ |
H A D | html-url.c | 903 const char *line_beg = text; in get_urls_file() local 912 while (line_beg < line_end && c_isspace (*line_beg)) in get_urls_file() 913 ++line_beg; in get_urls_file() 914 while (line_end > line_beg && c_isspace (*(line_end - 1))) in get_urls_file() 917 if (line_beg == line_end) in get_urls_file() 924 url_text = strdupdelim (line_beg, line_end); in get_urls_file()
|
/dports/audio/snd/snd-21.2/ |
H A D | snd-completion.c | 613 int line_beg = 0, open_paren = -1, parens, i; in find_indentation() local 630 line_beg = i; in find_indentation() 633 if (line_beg == 0) return(1); in find_indentation() 634 return(open_paren - line_beg + 2); in find_indentation()
|
/dports/games/cataclysm-dda-tiles/Cataclysm-DDA-0.F/src/ |
H A D | player_display.cpp | 1081 unsigned int line_beg = 0; in handle_player_display_action() local 1102 line_beg = 1; // skip first header in handle_player_display_action() 1111 if( line_beg >= line_end || line < line_beg ) { in handle_player_display_action() 1112 line = line_beg; in handle_player_display_action() 1121 if( line > line_beg ) { in handle_player_display_action() 1135 line = line_beg; in handle_player_display_action()
|
/dports/games/cataclysm-dda/Cataclysm-DDA-0.F/src/ |
H A D | player_display.cpp | 1081 unsigned int line_beg = 0; in handle_player_display_action() local 1102 line_beg = 1; // skip first header in handle_player_display_action() 1111 if( line_beg >= line_end || line < line_beg ) { in handle_player_display_action() 1112 line = line_beg; in handle_player_display_action() 1121 if( line > line_beg ) { in handle_player_display_action() 1135 line = line_beg; in handle_player_display_action()
|
/dports/editors/emacs-devel/emacs-4d1968b/src/ |
H A D | insdel.c | 2048 ptrdiff_t line_beg = start; in invalidate_buffer_caches() local 2058 line_beg = find_newline_no_quit (start, start_byte, -1, in invalidate_buffer_caches() 2062 start = line_beg - (line_beg > BUF_BEG (buf)); in invalidate_buffer_caches()
|
/dports/editors/emacs/emacs-27.2/src/ |
H A D | insdel.c | 2046 ptrdiff_t line_beg = start; in invalidate_buffer_caches() local 2056 line_beg = find_newline_no_quit (start, start_byte, -1, in invalidate_buffer_caches() 2060 start = line_beg - (line_beg > BUF_BEG (buf)); in invalidate_buffer_caches()
|
/dports/math/suitesparse-csparse/SuiteSparse-5.10.1/GraphBLAS/CUDA/ |
H A D | jitify.hpp | 456 size_t line_beg = log.rfind("\n", beg); in extract_include_info_from_compile_error() local 457 if (line_beg == std::string::npos) { in extract_include_info_from_compile_error() 458 line_beg = 0; in extract_include_info_from_compile_error() 460 line_beg += 1; in extract_include_info_from_compile_error() 463 size_t split = log.find("(", line_beg); in extract_include_info_from_compile_error() 464 parent = log.substr(line_beg, split - line_beg); in extract_include_info_from_compile_error()
|
/dports/math/suitesparse-klu/SuiteSparse-5.10.1/GraphBLAS/CUDA/ |
H A D | jitify.hpp | 456 size_t line_beg = log.rfind("\n", beg); in extract_include_info_from_compile_error() local 457 if (line_beg == std::string::npos) { in extract_include_info_from_compile_error() 458 line_beg = 0; in extract_include_info_from_compile_error() 460 line_beg += 1; in extract_include_info_from_compile_error() 463 size_t split = log.find("(", line_beg); in extract_include_info_from_compile_error() 464 parent = log.substr(line_beg, split - line_beg); in extract_include_info_from_compile_error()
|
/dports/math/suitesparse-graphblas/SuiteSparse-5.10.1/GraphBLAS/CUDA/ |
H A D | jitify.hpp | 456 size_t line_beg = log.rfind("\n", beg); in extract_include_info_from_compile_error() local 457 if (line_beg == std::string::npos) { in extract_include_info_from_compile_error() 458 line_beg = 0; in extract_include_info_from_compile_error() 460 line_beg += 1; in extract_include_info_from_compile_error() 463 size_t split = log.find("(", line_beg); in extract_include_info_from_compile_error() 464 parent = log.substr(line_beg, split - line_beg); in extract_include_info_from_compile_error()
|
/dports/math/suitesparse-klu/SuiteSparse-5.10.1/GraphBLAS/CUDA/test/ |
H A D | jitify.hpp | 457 size_t line_beg = log.rfind("\n", beg); in extract_include_info_from_compile_error() local 458 if (line_beg == std::string::npos) { in extract_include_info_from_compile_error() 459 line_beg = 0; in extract_include_info_from_compile_error() 461 line_beg += 1; in extract_include_info_from_compile_error() 464 size_t split = log.find("(", line_beg); in extract_include_info_from_compile_error() 465 parent = log.substr(line_beg, split - line_beg); in extract_include_info_from_compile_error()
|
/dports/math/suitesparse-btf/SuiteSparse-5.10.1/GraphBLAS/CUDA/test/ |
H A D | jitify.hpp | 457 size_t line_beg = log.rfind("\n", beg); in extract_include_info_from_compile_error() local 458 if (line_beg == std::string::npos) { in extract_include_info_from_compile_error() 459 line_beg = 0; in extract_include_info_from_compile_error() 461 line_beg += 1; in extract_include_info_from_compile_error() 464 size_t split = log.find("(", line_beg); in extract_include_info_from_compile_error() 465 parent = log.substr(line_beg, split - line_beg); in extract_include_info_from_compile_error()
|