/dports/lang/spidermonkey60/firefox-60.9.0/testing/web-platform/tests/tools/third_party/pytest/_pytest/assertion/ |
H A D | truncate.py | 41 def _truncate_explanation(input_lines, max_lines=None, max_chars=None): argument 51 if max_chars is None: 52 max_chars = DEFAULT_MAX_CHARS 56 if len(input_lines) <= max_lines and input_char_count <= max_chars: 62 truncated_explanation = _truncate_by_char_count(truncated_explanation, max_chars) 83 def _truncate_by_char_count(input_lines, max_chars): argument 85 if len("".join(input_lines)) <= max_chars: 91 if iterated_char_count + len(input_line) > max_chars: 99 final_line_truncate_point = max_chars - iterated_char_count
|
/dports/mail/thunderbird/thunderbird-91.8.0/third_party/python/pytest/_pytest/assertion/ |
H A D | truncate.py | 41 def _truncate_explanation(input_lines, max_lines=None, max_chars=None): argument 51 if max_chars is None: 52 max_chars = DEFAULT_MAX_CHARS 56 if len(input_lines) <= max_lines and input_char_count <= max_chars: 62 truncated_explanation = _truncate_by_char_count(truncated_explanation, max_chars) 80 def _truncate_by_char_count(input_lines, max_chars): argument 82 if len("".join(input_lines)) <= max_chars: 88 if iterated_char_count + len(input_line) > max_chars: 96 final_line_truncate_point = max_chars - iterated_char_count
|
/dports/www/firefox-esr/firefox-91.8.0/third_party/python/pytest/_pytest/assertion/ |
H A D | truncate.py | 41 def _truncate_explanation(input_lines, max_lines=None, max_chars=None): argument 51 if max_chars is None: 52 max_chars = DEFAULT_MAX_CHARS 56 if len(input_lines) <= max_lines and input_char_count <= max_chars: 62 truncated_explanation = _truncate_by_char_count(truncated_explanation, max_chars) 80 def _truncate_by_char_count(input_lines, max_chars): argument 82 if len("".join(input_lines)) <= max_chars: 88 if iterated_char_count + len(input_line) > max_chars: 96 final_line_truncate_point = max_chars - iterated_char_count
|
/dports/lang/spidermonkey78/firefox-78.9.0/third_party/python/pytest/src/_pytest/assertion/ |
H A D | truncate.py | 41 def _truncate_explanation(input_lines, max_lines=None, max_chars=None): argument 51 if max_chars is None: 52 max_chars = DEFAULT_MAX_CHARS 56 if len(input_lines) <= max_lines and input_char_count <= max_chars: 62 truncated_explanation = _truncate_by_char_count(truncated_explanation, max_chars) 80 def _truncate_by_char_count(input_lines, max_chars): argument 82 if len("".join(input_lines)) <= max_chars: 88 if iterated_char_count + len(input_line) > max_chars: 96 final_line_truncate_point = max_chars - iterated_char_count
|
/dports/lang/spidermonkey78/firefox-78.9.0/testing/web-platform/tests/tools/third_party/pytest/src/_pytest/assertion/ |
H A D | truncate.py | 41 def _truncate_explanation(input_lines, max_lines=None, max_chars=None): argument 51 if max_chars is None: 52 max_chars = DEFAULT_MAX_CHARS 56 if len(input_lines) <= max_lines and input_char_count <= max_chars: 62 truncated_explanation = _truncate_by_char_count(truncated_explanation, max_chars) 80 def _truncate_by_char_count(input_lines, max_chars): argument 82 if len("".join(input_lines)) <= max_chars: 88 if iterated_char_count + len(input_line) > max_chars: 96 final_line_truncate_point = max_chars - iterated_char_count
|
/dports/lang/spidermonkey60/firefox-60.9.0/third_party/python/pytest/_pytest/assertion/ |
H A D | truncate.py | 41 def _truncate_explanation(input_lines, max_lines=None, max_chars=None): argument 51 if max_chars is None: 52 max_chars = DEFAULT_MAX_CHARS 56 if len(input_lines) <= max_lines and input_char_count <= max_chars: 62 truncated_explanation = _truncate_by_char_count(truncated_explanation, max_chars) 83 def _truncate_by_char_count(input_lines, max_chars): argument 85 if len("".join(input_lines)) <= max_chars: 91 if iterated_char_count + len(input_line) > max_chars: 99 final_line_truncate_point = max_chars - iterated_char_count
|
/dports/devel/py-pytest/pytest-4.6.11/src/_pytest/assertion/ |
H A D | truncate.py | 44 def _truncate_explanation(input_lines, max_lines=None, max_chars=None): argument 54 if max_chars is None: 55 max_chars = DEFAULT_MAX_CHARS 59 if len(input_lines) <= max_lines and input_char_count <= max_chars: 65 truncated_explanation = _truncate_by_char_count(truncated_explanation, max_chars) 83 def _truncate_by_char_count(input_lines, max_chars): argument 85 if len("".join(input_lines)) <= max_chars: 91 if iterated_char_count + len(input_line) > max_chars: 99 final_line_truncate_point = max_chars - iterated_char_count
|
/dports/www/firefox-esr/firefox-91.8.0/testing/web-platform/tests/tools/third_party/pytest/src/_pytest/assertion/ |
H A D | truncate.py | 42 max_chars: Optional[int] = None, 52 if max_chars is None: 53 max_chars = DEFAULT_MAX_CHARS 57 if len(input_lines) <= max_lines and input_char_count <= max_chars: 63 truncated_explanation = _truncate_by_char_count(truncated_explanation, max_chars) 81 def _truncate_by_char_count(input_lines: List[str], max_chars: int) -> List[str]: 83 if len("".join(input_lines)) <= max_chars: 89 if iterated_char_count + len(input_line) > max_chars: 97 final_line_truncate_point = max_chars - iterated_char_count
|
/dports/www/firefox/firefox-99.0/testing/web-platform/tests/tools/third_party/pytest/src/_pytest/assertion/ |
H A D | truncate.py | 42 max_chars: Optional[int] = None, 52 if max_chars is None: 53 max_chars = DEFAULT_MAX_CHARS 57 if len(input_lines) <= max_lines and input_char_count <= max_chars: 63 truncated_explanation = _truncate_by_char_count(truncated_explanation, max_chars) 81 def _truncate_by_char_count(input_lines: List[str], max_chars: int) -> List[str]: 83 if len("".join(input_lines)) <= max_chars: 89 if iterated_char_count + len(input_line) > max_chars: 97 final_line_truncate_point = max_chars - iterated_char_count
|
/dports/mail/thunderbird/thunderbird-91.8.0/testing/web-platform/tests/tools/third_party/pytest/src/_pytest/assertion/ |
H A D | truncate.py | 42 max_chars: Optional[int] = None, 52 if max_chars is None: 53 max_chars = DEFAULT_MAX_CHARS 57 if len(input_lines) <= max_lines and input_char_count <= max_chars: 63 truncated_explanation = _truncate_by_char_count(truncated_explanation, max_chars) 81 def _truncate_by_char_count(input_lines: List[str], max_chars: int) -> List[str]: 83 if len("".join(input_lines)) <= max_chars: 89 if iterated_char_count + len(input_line) > max_chars: 97 final_line_truncate_point = max_chars - iterated_char_count
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/core/exported/ |
H A D | web_frame_content_dumper.cc | 28 void FrameContentAsPlainText(size_t max_chars, in FrameContentAsPlainText() argument 43 if (output.length() >= max_chars) in FrameContentAsPlainText() 44 output.Resize(max_chars); in FrameContentAsPlainText() 75 if (output.length() >= max_chars - frame_separator_length) in FrameContentAsPlainText() 79 FrameContentAsPlainText(max_chars, cur_local_child, output); in FrameContentAsPlainText() 80 if (output.length() >= max_chars) in FrameContentAsPlainText() 89 size_t max_chars) { in DeprecatedDumpFrameTreeAsText() argument 93 FrameContentAsPlainText(max_chars, To<WebLocalFrameImpl>(frame)->GetFrame(), in DeprecatedDumpFrameTreeAsText() 99 size_t max_chars) { in DumpWebViewAsText() argument 110 FrameContentAsPlainText(max_chars, To<WebLocalFrameImpl>(frame)->GetFrame(), in DumpWebViewAsText()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/blink/renderer/core/exported/ |
H A D | web_frame_content_dumper.cc | 30 void FrameContentAsPlainText(size_t max_chars, in FrameContentAsPlainText() argument 45 if (output.length() >= max_chars) in FrameContentAsPlainText() 46 output.Resize(max_chars); in FrameContentAsPlainText() 77 if (output.length() >= max_chars - frame_separator_length) in FrameContentAsPlainText() 81 FrameContentAsPlainText(max_chars, cur_local_child, output); in FrameContentAsPlainText() 82 if (output.length() >= max_chars) in FrameContentAsPlainText() 91 size_t max_chars) { in DeprecatedDumpFrameTreeAsText() argument 95 FrameContentAsPlainText(max_chars, To<WebLocalFrameImpl>(frame)->GetFrame(), in DeprecatedDumpFrameTreeAsText() 101 size_t max_chars) { in DumpWebViewAsText() argument 117 FrameContentAsPlainText(max_chars, To<WebLocalFrameImpl>(frame)->GetFrame(), in DumpWebViewAsText()
|
/dports/biology/py-scikit-bio/scikit-bio-0.5.6/skbio/stats/tests/ |
H A D | test_misc.py | 18 obs = _pprint_strs(['a', 'b', 'c'], max_chars=4) 23 obs = _pprint_strs(['a', 'b', 'c'], max_chars=5) 28 obs = _pprint_strs(['a', 'b', 'c'], max_chars=6) 33 obs = _pprint_strs(['a', 'b', 'c'], max_chars=2) 38 obs = _pprint_strs(['a'], max_chars=3) 46 obs = _pprint_strs(['a', 'b', 'c'], max_chars=13) 51 obs = _pprint_strs(['abc', 'defg', 'hi', 'jklmno'], max_chars=14,
|
/dports/games/openomf/openomf-c36c421/src/game/gui/ |
H A D | textinput.c | 26 int max_chars; member 67 strncat(tb->buf, e->text.text, tb->max_chars - strlen(tb->buf)); in textinput_event() 82 strncat(tb->buf, SDL_GetClipboardText(), tb->max_chars - strlen(tb->buf)); in textinput_event() 117 void textinput_set_max_chars(component *c, int max_chars) { in textinput_set_max_chars() argument 119 tb->buf = realloc(tb->buf, max_chars+1); in textinput_set_max_chars() 120 tb->buf[max_chars] = 0; in textinput_set_max_chars() 121 tb->max_chars = max_chars; in textinput_set_max_chars() 137 tb->max_chars = 15; in textinput_create() 149 tb->buf = malloc(tb->max_chars + 1); in textinput_create() 150 memset(tb->buf, 0, tb->max_chars + 1); in textinput_create() [all …]
|
/dports/shells/ion/ion-a8872014dbce730ccd00aaa722397dc394a52bf4/tests/ |
H A D | run_benches | 24 let max_chars:int = 0 27 if test $max_chars -lt $chars 28 let max_chars:int = $chars 31 echo $max_chars 35 let max_chars = $(script_width [@scripts]) 37 check_timing $file $max_chars
|
/dports/math/saga/saga-8.1.3/saga-gis/src/tools/terrain_analysis/ta_cliffmetrics/CliffMetrics/ |
H A D | utils_global.cpp | 378 char* pszLongToSz(long num, char* pszStr, int max_chars, int base) in pszLongToSz() argument 391 pszStr[--max_chars] = '\0'; in pszLongToSz() 393 while (max_chars >= nsign && num != 0) in pszLongToSz() 395 max_chars--; in pszLongToSz() 399 pszStr[max_chars] = rem + '0'; in pszLongToSz() 401 pszStr[max_chars] = rem - 10 + 'A'; in pszLongToSz() 407 pszStr[--max_chars] = '-'; in pszLongToSz() 409 if (max_chars > 0) in pszLongToSz() 410 memset(pszStr, '0', max_chars); in pszLongToSz() 412 return pszStr + max_chars; in pszLongToSz()
|
/dports/japanese/font-mona/monafont-2.90/tools/ |
H A D | bit2bdf | 39 if (($ch_count++ % 100) == 0 && $verbose != 0 && $max_chars > $verbose_min) { 40 $n = int($ch_count * 100 / $max_chars); 54 $max_chars = $1; 64 if ($ch_count != $max_chars) { 66 "'CHARS' line in $ARGV says that $max_chars glyphs are included,\n",
|
/dports/games/easyrpg-player/Player-0.7.0/resources/shinonome/tools/ |
H A D | bit2bdf.in | 38 if (($ch_count++ % 100) == 0 && $verbose != 0 && $max_chars > $verbose_min) { 39 $n = int($ch_count * 100 / $max_chars); 53 $max_chars = $1; 63 if ($ch_count != $max_chars) { 65 "'CHARS' line in $ARGV says that $max_chars glyphs are included,\n",
|
/dports/emulators/atari800/atari800-3.1.0/src/ |
H A D | cycle_map.c | 139 int max_chars; in antic_steal_map() local 150 max_chars = 48; in antic_steal_map() 155 max_chars = 40; in antic_steal_map() 161 max_chars = 32; in antic_steal_map() 165 max_chars = (max_chars >> md); in antic_steal_map() 177 && ((i - char_start) < max_chars * interval)) { in antic_steal_map() 181 && ((i - font_start) < max_chars * interval)) { in antic_steal_map() 185 && ((i - bitmap_start) < max_chars * interval)) { in antic_steal_map()
|
/dports/net-p2p/bazarr/bazarr-1.0.2/libs/deep_translator/ |
H A D | parent.py | 38 def _validate_payload(payload, min_chars=1, max_chars=5000): argument 52 if not BaseTranslator.__check_length(payload, min_chars, max_chars): 53 raise NotValidLength(payload, min_chars, max_chars) 57 def __check_length(payload, min_chars, max_chars): argument 65 return True if min_chars <= len(payload) < max_chars else False
|
/dports/x11-wm/pekwm/pekwm-release-0.2.0/src/ |
H A D | PFont.cc | 78 uint offset = x, chars = max_chars; in draw() 294 PFontX11::getWidth(const std::string &text, uint max_chars) in getWidth() argument 302 if (! max_chars || (max_chars > text.size())) { in getWidth() 303 max_chars = text.size(); in getWidth() 451 PFontXmb::getWidth(const std::string &text, uint max_chars) in getWidth() argument 459 if (! max_chars || (max_chars > text.size())) { in getWidth() 460 max_chars = text.size(); in getWidth() 570 PFontXft::getWidth(const std::string &text, uint max_chars) in getWidth() argument 578 if (! max_chars || (max_chars > text.size())) { in getWidth() 579 max_chars = text.size(); in getWidth() [all …]
|
/dports/science/py-obspy/obspy-1.2.2/misc/docs/source/_ext/autosummary/ |
H A D | __init__.py | 288 max_chars = max(10, max_item_chars - len(display_name)) 289 sig = mangle_signature(sig, max_chars=max_chars) 355 def mangle_signature(sig, max_chars=30): argument 380 sig = limited_join(", ", args, max_chars=max_chars - 2) 383 sig = "[%s]" % limited_join(", ", opts, max_chars=max_chars - 4) 384 elif len(sig) < max_chars - 4 - 2 - 3: 386 ", ", opts, max_chars=max_chars - len(sig) - 4 - 2) 391 def limited_join(sep, items, max_chars=30, overflow_marker="..."): argument 400 if len(full_str) < max_chars: 407 if n_chars < max_chars - len(overflow_marker):
|
/dports/www/serendipity/Serendipity-2.3.5/plugins/serendipity_plugin_comments/ |
H A D | serendipity_plugin_comments.php | 136 $max_chars = $this->get_config('max_chars'); 144 if (!$max_chars || !is_numeric($max_chars) || $max_chars < 1) { 145 $max_chars = 120; 204 $comment = mb_strimwidth($comment, 0, $max_chars, " [...]", LANG_CHARSET); 206 $comments = wordwrap($comment, $max_chars, '@@@', 1);
|
/dports/devel/py-dogpile.cache/dogpile.cache-0.9.2/dogpile/cache/ |
H A D | util.py | 169 def __init__(self, value, max_chars=300): argument 171 self.max_chars = max_chars 179 if lenrep > self.max_chars: 180 segment_length = self.max_chars // 2 185 % (lenrep - self.max_chars)
|
/dports/www/ilias/ILIAS-5.4.25/Services/Form/classes/ |
H A D | class.ilTagInputGUI.php | 20 protected $max_chars = 0; variable in ilTagInputGUI 40 * @param int $max_chars 42 public function setMaxChars($max_chars) argument 44 $this->max_chars = $max_chars; 213 $tpl->setVariable("MAXCHARS", $this->max_chars);
|