Home
last modified time | relevance | path

Searched refs:do_format (Results 1 – 25 of 239) sorted by relevance

12345678910

/dports/www/newsboat/newsboat-2.22.1/test/
H A Dfmtstrformatter.cpp23 REQUIRE(fmt.do_format(
32 REQUIRE(fmt.do_format("") == "");
34 REQUIRE(fmt.do_format("%") == "");
38 REQUIRE(fmt.do_format(
45 REQUIRE(fmt.do_format("%-4a") ==
49 REQUIRE(fmt.do_format("%2a") ==
51 REQUIRE(fmt.do_format("%-2a") ==
100 REQUIRE(fmt.do_format(
115 REQUIRE(fmt.do_format(
308 REQUIRE(fmt.do_format("%x%> %y",
[all …]
/dports/www/newsboat/newsboat-2.22.1/rust/libnewsboat/src/fmtstrformatter/
H A Dmod.rs257 assert_eq!(fmt.do_format("", 0), ""); in t_do_format_replaces_variables_with_values_three_variables()
259 assert_eq!(fmt.do_format("%", 0), ""); in t_do_format_replaces_variables_with_values_three_variables()
319 assert_eq!(fmt.do_format("", 0), ""); in t_do_format_supports_multibyte_characters_simple_cases_with_three_variables()
321 assert_eq!(fmt.do_format("%", 0), ""); in t_do_format_supports_multibyte_characters_simple_cases_with_three_variables()
516 fmt.do_format("%x%> %y", 30), in t_spacer_pads_consecutive_text_to_the_right_using_specified_char_total_length()
520 fmt.do_format("%x%> %y", 45), in t_spacer_pads_consecutive_text_to_the_right_using_specified_char_total_length()
534 fmt.do_format("%x%>k%y", 30), in t_spacer_pads_consecutive_text_to_the_right_using_specified_char_check_char()
538 fmt.do_format("%x%>i%y", 45), in t_spacer_pads_consecutive_text_to_the_right_using_specified_char_check_char()
624 fmt.do_format(&input, 0);
631 fmt.do_format(&format, 0);
[all …]
/dports/databases/couchdb3/apache-couchdb-3.2.1/src/couch_log/test/eunit/
H A Dcouch_log_formatter_test.erl56 do_format(Event)
79 do_format(Event)
106 do_format(Event)
133 do_format(Event)
160 do_format(Event)
193 do_format(Event)
219 do_format(Event)
243 do_format(Event)
833 do_format({
846 do_format({
[all …]
/dports/devel/elixir-timex/timex-3.3.0/examples/formatter/
H A Dhumanized.exs41 do_format(Timex.to_naive_datetime(date), dirs, <<>>)
46 defp do_format(_date, [], result), do: {:ok, result} function
47 defp do_format(_date, _, {:error, _} = error), do: error function
48 …defp do_format(date, [%Directive{type: :literal, value: char} | dirs], result) when is_binary(char… function
49 do_format(date, dirs, <<result::binary, char::binary>>)
51 …defp do_format(%NaiveDateTime{day: day} = date, [%Directive{type: :oday_phonetic} | dirs], result)… function
53 do_format(date, dirs, <<result::binary, phonetic::binary>>)
55 defp do_format(date, [%Directive{type: :date_shift} | dirs], result) do function
56 do_format(date, dirs, <<result::binary, "currently"::binary>>)
58 …defp do_format(date, [%Directive{type: type, modifiers: mods, flags: flags, width: width} | dirs],… function
[all …]
/dports/devel/elixir-timex/timex-3.3.0/docs/
H A DCustom Formatters.md55 do_format(Timex.to_naive_datetime(date), dirs, <<>>)
60 defp do_format(_date, [], result), do: {:ok, result}
61 defp do_format(_date, _, {:error, _} = error), do: error
62 …defp do_format(date, [%Directive{type: :literal, value: char} | dirs], result) when is_binary(char…
63 do_format(date, dirs, <<result::binary, char::binary>>)
65 …defp do_format(%NaiveDateTime{day: day} = date, [%Directive{type: :oday_phonetic} | dirs], result)…
67 do_format(date, dirs, <<result::binary, phonetic::binary>>)
69 defp do_format(date, [%Directive{type: :date_shift} | dirs], result) do
70 do_format(date, dirs, <<result::binary, "currently"::binary>>)
72 …defp do_format(date, [%Directive{type: type, modifiers: mods, flags: flags, width: width} | dirs],…
[all …]
/dports/biology/ncbi-cxx-toolkit/ncbi_cxx--25_2_0/src/app/speedtest/
H A Dspeedtest.cpp81 CNcbiIstream&, CNcbiOstream&, CScope&, CRef<CSeq_entry>&, bool do_format );
234 bool do_format ) in TestFeatureGeneOverlap() argument
244 if (do_format) { in TestFeatureGeneOverlap()
258 bool do_format ) in DoProcessFeatureSuggest() argument
271 bool do_format ) in TestFeatureGeneOverlap() argument
276 count += TestFeatureGeneOverlap( ip, op, scope, **it, do_format ); in TestFeatureGeneOverlap()
289 bool do_format ) in TestFeatureGeneOverlap() argument
294 count += TestFeatureGeneOverlap( ip, op, scope, **it, do_format ); in TestFeatureGeneOverlap()
307 bool do_format ) in DoProcessFeatureGeneOverlap() argument
313 count += TestFeatureGeneOverlap( ip, op, scope, se->SetSeq(), do_format ); in DoProcessFeatureGeneOverlap()
[all …]
/dports/cad/kicad-devel/kicad-a17a58203b33e08b966075833b177dad5740c236/.githooks/pre-commit.d/
H A D50-check-format13 do_format=false
17 do_format=true
22 do_format=true
25 if [ ! ${do_format} = true ]; then
/dports/databases/couchdb3/apache-couchdb-3.2.1/src/couch_log/src/
H A Dcouch_log_formatter.erl61 do_format(Event)
83 do_format({error, _GL, {Pid, "** State machine " ++ _, Args}}) -> function
118 do_format({error, _GL, {Pid, Fmt, Args}}) -> function
121 do_format({error_report, _GL, {Pid, std_error, D}}) -> function
124 do_format({error_report, _GL, {Pid, supervisor_report, D}}) -> function
146 do_format({warning_msg, _GL, {Pid, Fmt, Args}}) -> function
149 do_format({warning_report, _GL, {Pid, std_warning, Report}}) -> function
152 do_format({info_msg, _GL, {Pid, Fmt, Args}}) -> function
164 do_format({info_report, _GL, {Pid, std_info, D}}) -> function
167 do_format({info_report, _GL, {Pid, progress, D}}) -> function
[all …]
/dports/lang/erlang-runtime23/otp-OTP-23.3.4.10/lib/stdlib/test/
H A Dcalendar_SUITE.erl264 Str = do_format(TO, [{offset, 120}]),
266 do_format(TO * 1000, [{offset, 120 * 1000}]++Ms),
268 do_format(TO * 1000 * 1000, [{offset, 120 * 1000 * 1000}]++Mys),
270 do_format(TO * 1000 * 1000 * 1000,
274 NStr = do_format(TO, [{offset, -120}]),
276 do_format(TO * 1000, [{offset, -120 * 1000}]++Ms),
278 do_format(TO * 1000 * 1000, [{offset, -120 * 1000 * 1000}]++Mys),
280 do_format(TO * 1000 * 1000 * 1000,
331 do_format(Time, [{offset, "Z"}|Options]).
333 do_format(Time, Options) -> function
/dports/lang/erlang-runtime21/otp-OTP-21.3.8.24/lib/stdlib/test/
H A Dcalendar_SUITE.erl263 Str = do_format(TO, [{offset, 120}]),
265 do_format(TO * 1000, [{offset, 120 * 1000}]++Ms),
267 do_format(TO * 1000 * 1000, [{offset, 120 * 1000 * 1000}]++Mys),
269 do_format(TO * 1000 * 1000 * 1000,
273 NStr = do_format(TO, [{offset, -120}]),
275 do_format(TO * 1000, [{offset, -120 * 1000}]++Ms),
277 do_format(TO * 1000 * 1000, [{offset, -120 * 1000 * 1000}]++Mys),
279 do_format(TO * 1000 * 1000 * 1000,
330 do_format(Time, [{offset, "Z"}|Options]).
332 do_format(Time, Options) -> function
/dports/lang/erlang-runtime22/otp-OTP-22.3.4.24/lib/stdlib/test/
H A Dcalendar_SUITE.erl264 Str = do_format(TO, [{offset, 120}]),
266 do_format(TO * 1000, [{offset, 120 * 1000}]++Ms),
268 do_format(TO * 1000 * 1000, [{offset, 120 * 1000 * 1000}]++Mys),
270 do_format(TO * 1000 * 1000 * 1000,
274 NStr = do_format(TO, [{offset, -120}]),
276 do_format(TO * 1000, [{offset, -120 * 1000}]++Ms),
278 do_format(TO * 1000 * 1000, [{offset, -120 * 1000 * 1000}]++Mys),
280 do_format(TO * 1000 * 1000 * 1000,
331 do_format(Time, [{offset, "Z"}|Options]).
333 do_format(Time, Options) -> function
/dports/lang/erlang-runtime24/otp-OTP-24.1.7/lib/stdlib/test/
H A Dcalendar_SUITE.erl264 Str = do_format(TO, [{offset, 120}]),
266 do_format(TO * 1000, [{offset, 120 * 1000}]++Ms),
268 do_format(TO * 1000 * 1000, [{offset, 120 * 1000 * 1000}]++Mys),
270 do_format(TO * 1000 * 1000 * 1000,
274 NStr = do_format(TO, [{offset, -120}]),
276 do_format(TO * 1000, [{offset, -120 * 1000}]++Ms),
278 do_format(TO * 1000 * 1000, [{offset, -120 * 1000 * 1000}]++Mys),
280 do_format(TO * 1000 * 1000 * 1000,
331 do_format(Time, [{offset, "Z"}|Options]).
333 do_format(Time, Options) -> function
/dports/lang/erlang-wx/otp-OTP-24.1.7/lib/stdlib/test/
H A Dcalendar_SUITE.erl264 Str = do_format(TO, [{offset, 120}]),
266 do_format(TO * 1000, [{offset, 120 * 1000}]++Ms),
268 do_format(TO * 1000 * 1000, [{offset, 120 * 1000 * 1000}]++Mys),
270 do_format(TO * 1000 * 1000 * 1000,
274 NStr = do_format(TO, [{offset, -120}]),
276 do_format(TO * 1000, [{offset, -120 * 1000}]++Ms),
278 do_format(TO * 1000 * 1000, [{offset, -120 * 1000 * 1000}]++Mys),
280 do_format(TO * 1000 * 1000 * 1000,
331 do_format(Time, [{offset, "Z"}|Options]).
333 do_format(Time, Options) -> function
/dports/lang/erlang/otp-OTP-24.1.7/lib/stdlib/test/
H A Dcalendar_SUITE.erl264 Str = do_format(TO, [{offset, 120}]),
266 do_format(TO * 1000, [{offset, 120 * 1000}]++Ms),
268 do_format(TO * 1000 * 1000, [{offset, 120 * 1000 * 1000}]++Mys),
270 do_format(TO * 1000 * 1000 * 1000,
274 NStr = do_format(TO, [{offset, -120}]),
276 do_format(TO * 1000, [{offset, -120 * 1000}]++Ms),
278 do_format(TO * 1000 * 1000, [{offset, -120 * 1000 * 1000}]++Mys),
280 do_format(TO * 1000 * 1000 * 1000,
331 do_format(Time, [{offset, "Z"}|Options]).
333 do_format(Time, Options) -> function
/dports/lang/erlang-java/otp-OTP-24.1.7/lib/stdlib/test/
H A Dcalendar_SUITE.erl264 Str = do_format(TO, [{offset, 120}]),
266 do_format(TO * 1000, [{offset, 120 * 1000}]++Ms),
268 do_format(TO * 1000 * 1000, [{offset, 120 * 1000 * 1000}]++Mys),
270 do_format(TO * 1000 * 1000 * 1000,
274 NStr = do_format(TO, [{offset, -120}]),
276 do_format(TO * 1000, [{offset, -120 * 1000}]++Ms),
278 do_format(TO * 1000 * 1000, [{offset, -120 * 1000 * 1000}]++Mys),
280 do_format(TO * 1000 * 1000 * 1000,
331 do_format(Time, [{offset, "Z"}|Options]).
333 do_format(Time, Options) -> function
/dports/lang/elixir/elixir-1.12.3/lib/elixir/lib/io/
H A Dansi.ex255 do_format(chardata, [], [], emit?, :maybe)
275 do_format(chardata, [], [], emit?, false)
278 defp do_format([term | rest], rem, acc, emit?, append_reset) do function
279 do_format(term, [rest | rem], acc, emit?, append_reset)
282 defp do_format(term, rem, acc, true, append_reset) when is_atom(term) do function
287 do_format([], rem, acc, false, append_reset)
291 do_format([], rem, [acc, term], emit?, append_reset)
294 defp do_format([], [next | rest], acc, emit?, append_reset) do function
295 do_format(next, rest, acc, emit?, append_reset)
298 defp do_format([], [], acc, true, true) do function
[all …]
/dports/lang/elixir-devel/elixir-1.13.1/lib/elixir/lib/io/
H A Dansi.ex255 do_format(chardata, [], [], emit?, :maybe)
275 do_format(chardata, [], [], emit?, false)
278 defp do_format([term | rest], rem, acc, emit?, append_reset) do function
279 do_format(term, [rest | rem], acc, emit?, append_reset)
282 defp do_format(term, rem, acc, true, append_reset) when is_atom(term) do function
287 do_format([], rem, acc, false, append_reset)
291 do_format([], rem, [acc, term], emit?, append_reset)
294 defp do_format([], [next | rest], acc, emit?, append_reset) do function
295 do_format(next, rest, acc, emit?, append_reset)
298 defp do_format([], [], acc, true, true) do function
[all …]
/dports/devel/elixir-timex/timex-3.3.0/lib/format/duration/formatters/
H A Dhumanized.ex68 |> do_format(locale)
72 defp do_format(components, locale), function
73 do: do_format(components, <<>>, locale)
74 defp do_format([], str, _locale), function
76 defp do_format([{unit, value}|rest], str, locale) do function
81 <<>> -> do_format(rest, "#{unit_with_value}", locale)
82 _ -> do_format(rest, str <> "#{separator} #{unit_with_value}", locale)
H A Ddefault.ex66 |> do_format
70 defp do_format(components), do: do_format(components, <<?P>>) function
71 defp do_format([], str), do: str function
72 defp do_format([{unit,_} = component|rest], str) do function
75 do_format(rest, format_component(component, str))
77 do_format(rest, format_component(component, str <> "T"))
79 do_format(rest, format_component(component, str))
/dports/devel/libcjson/cJSON-1.7.15/fuzzing/
H A Dafl.c124 int do_format = 0; in main() local
127 do_format = 1; in main()
133 printed_json = cJSON_PrintBuffered(item, 1, do_format); in main()
138 if (do_format) in main()
/dports/devel/elixir-apex/apex-1.2.1/lib/apex/format/
H A Dseq.ex15 pre <> do_format(data, next_indent_level(options), config) <> post
18 defp do_format(data, options, config) when is_list(data) do function
20 |> Enum.map(&do_format(&1, options, config))
24 defp do_format({entry, i}, options, config) do function
H A Dtuple.ex6 do_format(data, options)
9 defp do_format({}, _options), do: "{}" <> new_line() function
10 defp do_format(data, options) do function
/dports/net-im/prosody-modules/Community-Modules-bb8459c220c9/mod_log_json/
H A Dmod_log_json.lua25 local do_format = config.formatted_as or false;
43 if do_format then
44 payload[do_format] = format(message, ...)
/dports/lang/erlang-runtime23/otp-OTP-23.3.4.10/lib/kernel/src/
H A Dlogger_formatter.erl57 B = do_format(Level,Meta1,BT,Config),
58 A = do_format(Level,Meta1,AT,Config),
111 do_format(Level,Data,[level|Format],Config) -> function
113 do_format(Level,Data,[{Key,IfExist,Else}|Format],Config) -> function
117 error -> do_format(Level,Data,Else,Config)
119 [String|do_format(Level,Data,Format,Config)];
120 do_format(Level,Data,[Key|Format],Config) function
128 [String|do_format(Level,Data,Format,Config)];
129 do_format(Level,Data,[Str|Format],Config) -> function
130 [Str|do_format(Level,Data,Format,Config)];
[all …]
/dports/lang/erlang-runtime24/otp-OTP-24.1.7/lib/kernel/src/
H A Dlogger_formatter.erl57 B = do_format(Level,Meta1,BT,Config),
58 A = do_format(Level,Meta1,AT,Config),
111 do_format(Level,Data,[level|Format],Config) -> function
113 do_format(Level,Data,[{Key,IfExist,Else}|Format],Config) -> function
117 error -> do_format(Level,Data,Else,Config)
119 [String|do_format(Level,Data,Format,Config)];
120 do_format(Level,Data,[Key|Format],Config) function
128 [String|do_format(Level,Data,Format,Config)];
129 do_format(Level,Data,[Str|Format],Config) -> function
130 [Str|do_format(Level,Data,Format,Config)];
[all …]

12345678910