text
stringlengths
24
1.04M
metadata
stringlengths
233
497
### File: include/fast_io_unit/floating/lc_roundtrip.h #pragma once namespace fast_io::details { //let the compiler pick the best calling convention. template<::std::integral char_type,my_unsigned_integral U> inline constexpr char_type* lc_print_rsv_fp_dgs_common_decay_impl(char_type const* decimal_point_base,std::si...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_unit/floating/lc_roundtrip.h", "license": "mit", "size": 14840}
### File: include/fast_io_unit/floating/precision.h #pragma once namespace fast_io { namespace details::precisionfloat { template<std::unsigned_integral T> requires (sizeof(T)==sizeof(std::uint_least16_t)||sizeof(T)==sizeof(std::uint_least32_t)||sizeof(T)==sizeof(std::uint_least64_t)) inline constexpr T factor_mulass...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_unit/floating/precision.h", "license": "mit", "size": 9219}
### File: include/fast_io_unit/floating/punning.h #pragma once #if defined(_MSC_VER) && !defined(__clang__) #pragma warning(push) #pragma warning( disable : 4820 ) #endif namespace fast_io::details { template<typename flt> struct iec559_traits; #if defined(__SIZEOF_FLOAT16__) || defined(__FLOAT16__) template<> st...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_unit/floating/punning.h", "license": "mit", "size": 18372}
### File: include/fast_io_unit/floating/roundtrip.h #pragma once /* Algorithm: Dragonbox Author: Jk Jeon Reference: Abolz */ namespace fast_io::details { struct uint32x2 { std::uint_least32_t hi; std::uint_least32_t lo; }; struct uint64x2 { std::uint_least64_t hi; std::uint_least64_t lo; }; inline constexpr std::ui...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_unit/floating/roundtrip.h", "license": "mit", "size": 51299}
### File: include/fast_io_unit/gb18030.h #pragma once namespace fast_io { /* Referenced from GB18030与Unicode编码转换算法.程小刚,郭韧 https://max.book118.com/html/2019/0128/6114222054002004.shtm */ namespace details::codecvt::gb18030 { inline constexpr char32_t linear_18030(char32_t a,char32_t b,char32_t c,char32_t d) noexcep...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_unit/gb18030.h", "license": "mit", "size": 7803}
### File: include/fast_io_unit/gb18030_impl/gb18030_tb.h 0x30813081,0x31813081,0x32813081,0x33813081,0x34813081,0x35813081,0x36813081,0x37813081,0x38813081,0x39813081,0x30823081,0x31823081,0x32823081,0x33823081,0x34823081,0x35823081,0x36823081,0x37823081,0x38823081,0x39823081,0x30833081,0x31833081,0x32833081,0x3383308...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_unit/gb18030_impl/gb18030_tb.h", "license": "mit", "size": 264837}
### File: include/fast_io_unit/gb18030_impl/gb18030_uni2_tb.h 0x4E02,0x4E04,0x4E05,0x4E06,0x4E0F,0x4E12,0x4E17,0x4E1F,0x4E20,0x4E21,0x4E23,0x4E26,0x4E29,0x4E2E,0x4E2F,0x4E31,0x4E33,0x4E35,0x4E37,0x4E3C,0x4E40,0x4E41,0x4E42,0x4E44,0x4E46,0x4E4A,0x4E51,0x4E55,0x4E57,0x4E5A,0x4E5B,0x4E62,0x4E63,0x4E64,0x4E65,0x4E67,0x4E6...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_unit/gb18030_impl/gb18030_uni2_tb.h", "license": "mit", "size": 167410}
### File: include/fast_io_unit/string.h #pragma once #include"string_impl/impl.h"
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_unit/string.h", "license": "mit", "size": 47}
### File: include/fast_io_unit/string_impl/concat.h #pragma once namespace fast_io { template<typename ...Args> [[nodiscard]] inline #if __cpp_lib_constexpr_string >= 201907L constexpr #endif std::string concat(Args&& ...args) { constexpr bool type_error{print_freestanding_okay<::fast_io::details::dummy_buffer_outp...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_unit/string_impl/concat.h", "license": "mit", "size": 5772}
### File: include/fast_io_unit/string_impl/impl.h #pragma once #if defined(_LIBCPP_VERSION) #include"libc++.h" #elif defined(__GLIBCXX__) #include"libstdc++.h" #elif defined(_MSVC_STL_UPDATE) #include"msvc_stl.h" #else #error "Anyone knows how to hack brutal std::basic_string internal on this platform?" #endif #incl...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_unit/string_impl/impl.h", "license": "mit", "size": 340}
### File: include/fast_io_unit/string_impl/lc_concat.h #pragma once namespace fast_io { namespace details::decay { template<std::integral char_type,typename T,typename... Args> inline constexpr std::size_t lc_calculate_scatter_dynamic_reserve_size_with_scatter(basic_lc_all<char_type> const* all,[[maybe_unused]] T t...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_unit/string_impl/lc_concat.h", "license": "mit", "size": 10566}
### File: include/fast_io_unit/string_impl/libc++.h #pragma once #if defined(__GNUC__) || defined(__clang__) #pragma GCC system_header #endif /* https://github.com/llvm-mirror/libcxx/blob/78d6a7767ed57b50122a161b91f59f19c9bd0d19/include/string#L703 */ namespace fast_io::details::string_hack { template<class _CharT,...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_unit/string_impl/libc++.h", "license": "mit", "size": 3959}
### File: include/fast_io_unit/string_impl/libstdc++.h #pragma once namespace fast_io::details::string_hack { /* https://github.com/gcc-mirror/gcc/blob/47fe96341d28ff9e68990038b1beb8a760ff26d0/libstdc%2B%2B-v3/include/bits/basic_string.h#L150 */ template<typename T> struct #if __has_cpp_attribute(__gnu__::__may_ali...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_unit/string_impl/libstdc++.h", "license": "mit", "size": 2241}
### File: include/fast_io_unit/string_impl/msvc_stl.h #pragma once namespace fast_io::details::string_hack { /* https://github.com/microsoft/STL/blob/master/stl/inc/xstring */ template <class _Elem, class _Traits = std::char_traits<_Elem>, class _Alloc = std::allocator<_Elem>> struct #if __has_cpp_attribute(__gnu__...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_unit/string_impl/msvc_stl.h", "license": "mit", "size": 1886}
### File: include/fast_io_unit/string_impl/ostring_ref.h #pragma once namespace fast_io { template<std::integral char_type,typename traits_type,typename allocator_type> inline constexpr auto strlike_construct_define(io_strlike_type_t<char_type,::std::basic_string<char_type,traits_type,allocator_type>>,char_type cons...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_unit/string_impl/ostring_ref.h", "license": "mit", "size": 5834}
### File: include/fast_io_unit/string_impl/scan_str_ctx_impl.h #pragma once namespace fast_io { struct scan_string_context { bool copying{}; }; namespace details { template<bool noskipws,bool line,::std::integral char_type,typename traits,typename allocator_type> inline constexpr ::fast_io::parse_result<char_type...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_unit/string_impl/scan_str_ctx_impl.h", "license": "mit", "size": 6444}
### File: include/fast_io_unit/timespec.h #pragma once namespace fast_io { namespace details { inline constexpr bool denom_is_natural_pow10(std::int_least64_t denom) noexcept { if(denom<0) return false; std::uint_least64_t den{static_cast<std::uint_least64_t>(denom)}; for(;!(den%10u);den/=10u); return den==1;...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "include/fast_io_unit/timespec.h", "license": "mit", "size": 2485}
### File: man/concat.3 .\" Manpage for fast_io::concat .\" Contact euloanty@live.com or pssvv4@gmail.com to correct errors of typos .TH CONCAT 3 2020-11-14 "fast_io" "C++ Programmer's Manual" .SH "NAME" concat, concatln - string generators .SH "SYNOPSIS" .nf .B #include <fast_io.h> .PP .BI "template<typename T=std::str...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Roff Manpage", "repo_name": "vincent_personan/fast_io", "path": "man/concat.3", "license": "mit", "size": 4609}
### File: man/native_file.3 .\" Manpage for fast_io::concat .\" Contact euloanty@live.com or pssvv4@gmail.com to correct errors of typos .TH CONCAT 3 2020-11-20 "fast_io" "C++ Programmer's Manual" .SH "NAME" native_file, inative_file, onative_file, u8native_file, u8inative_file, u8onative_file, wnative_file, winative_f...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Roff Manpage", "repo_name": "vincent_personan/fast_io", "path": "man/native_file.3", "license": "mit", "size": 4041}
### File: man/print.3 .\" Manpage for print .\" Contact euloanty@live.com to correct errors of typos .TH PRINT 3 2020-10-25 "fast_io" "C++ Programmer's Manual" .SH "NAME" print, println, perr, perrln, panic, panicln, debug_print, debug_println, debug_perr, debug_perrln - output conversion .SH "SYNOPSIS" .nf .B #include...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Roff Manpage", "repo_name": "vincent_personan/fast_io", "path": "man/print.3", "license": "mit", "size": 4669}
### File: man/to.3 .\" Manpage for fast_io::concat .\" Contact euloanty@live.com or pssvv4@gmail.com to correct errors of typos .TH TO 3 2020-11-14 "fast_io" "C++ Programmer's Manual" .SH "NAME" to - do the opposite of fast_io::concat(). Convert string to integer/floating point/etc. .SH "SYNOPSIS" .nf .B #include <fast...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Roff Manpage", "repo_name": "vincent_personan/fast_io", "path": "man/to.3", "license": "mit", "size": 2643}
### File: src/i18n_data/locale/anp_IN.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("anp_IN"),.encoding=...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/anp_IN.cc", "license": "mit", "size": 14994}
### File: src/i18n_data/locale/ar_IN.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("ar_IN"),.encoding=ts...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/ar_IN.cc", "license": "mit", "size": 13899}
### File: src/i18n_data/locale/bhb_IN.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("bhb_IN"),.encoding=...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/bhb_IN.cc", "license": "mit", "size": 12419}
### File: src/i18n_data/locale/bho_IN.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("bho_IN"),.encoding=...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/bho_IN.cc", "license": "mit", "size": 14969}
### File: src/i18n_data/locale/bo_IN.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("bo_IN"),.encoding=ts...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/bo_IN.cc", "license": "mit", "size": 16964}
### File: src/i18n_data/locale/brx_IN.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("brx_IN"),.encoding=...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/brx_IN.cc", "license": "mit", "size": 15434}
### File: src/i18n_data/locale/cmn_TW.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t numeric_grouping_storage[]{4}; inline constexpr basic_lc_time_era<char> time_era_storage[]{{.direction=true,.offset=2,.start_date_year=1913,.start_date_month=1,.start_date_day=1,.end_d...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/cmn_TW.cc", "license": "mit", "size": 17788}
### File: src/i18n_data/locale/doi_IN.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("doi_IN"),.encoding=...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/doi_IN.cc", "license": "mit", "size": 14909}
### File: src/i18n_data/locale/gu_IN.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("gu_IN"),.encoding=ts...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/gu_IN.cc", "license": "mit", "size": 15219}
### File: src/i18n_data/locale/hak_TW.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t numeric_grouping_storage[]{4}; inline constexpr basic_lc_time_era<char> time_era_storage[]{{.direction=true,.offset=2,.start_date_year=1913,.start_date_month=1,.start_date_day=1,.end_d...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/hak_TW.cc", "license": "mit", "size": 17618}
### File: src/i18n_data/locale/hi_IN.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("hi_IN"),.encoding=ts...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/hi_IN.cc", "license": "mit", "size": 15554}
### File: src/i18n_data/locale/hne_IN.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("hne_IN"),.encoding=...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/hne_IN.cc", "license": "mit", "size": 14849}
### File: src/i18n_data/locale/kn_IN.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("kn_IN"),.encoding=ts...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/kn_IN.cc", "license": "mit", "size": 14669}
### File: src/i18n_data/locale/kok_IN.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("kok_IN"),.encoding=...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/kok_IN.cc", "license": "mit", "size": 15994}
### File: src/i18n_data/locale/ks_IN.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("ks_IN"),.encoding=ts...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/ks_IN.cc", "license": "mit", "size": 14409}
### File: src/i18n_data/locale/ks_IN@devanagari.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("ks_IN@dev...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/ks_IN@devanagari.cc", "license": "mit", "size": 15314}
### File: src/i18n_data/locale/lo_LA.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr basic_lc_time_era<char> time_era_storage[]{{.direction=true,.offset=1,.start_date_year=-543,.start_date_month=1,.start_date_day=1,.end_da...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/lo_LA.cc", "license": "mit", "size": 15848}
### File: src/i18n_data/locale/lzh_TW.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t numeric_grouping_storage[]{4}; inline constexpr basic_lc_time_era<char> time_era_storage[]{{.direction=true,.offset=2,.start_date_year=1913,.start_date_month=1,.start_date_day=1,.end_d...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/lzh_TW.cc", "license": "mit", "size": 20420}
### File: src/i18n_data/locale/mag_IN.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("mag_IN"),.encoding=...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/mag_IN.cc", "license": "mit", "size": 14774}
### File: src/i18n_data/locale/mai_IN.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("mai_IN"),.encoding=...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/mai_IN.cc", "license": "mit", "size": 15429}
### File: src/i18n_data/locale/mr_IN.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("mr_IN"),.encoding=ts...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/mr_IN.cc", "license": "mit", "size": 15399}
### File: src/i18n_data/locale/nan_TW.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t numeric_grouping_storage[]{4}; inline constexpr basic_lc_time_era<char> time_era_storage[]{{.direction=true,.offset=2,.start_date_year=1913,.start_date_month=1,.start_date_day=1,.end_d...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/nan_TW.cc", "license": "mit", "size": 17638}
### File: src/i18n_data/locale/pa_IN.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("pa_IN"),.encoding=ts...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/pa_IN.cc", "license": "mit", "size": 14434}
### File: src/i18n_data/locale/raj_IN.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("raj_IN"),.encoding=...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/raj_IN.cc", "license": "mit", "size": 14424}
### File: src/i18n_data/locale/sa_IN.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("sa_IN"),.encoding=ts...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/sa_IN.cc", "license": "mit", "size": 15669}
### File: src/i18n_data/locale/sat_IN.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("sat_IN"),.encoding=...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/sat_IN.cc", "license": "mit", "size": 15504}
### File: src/i18n_data/locale/sd_IN.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("sd_IN"),.encoding=ts...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/sd_IN.cc", "license": "mit", "size": 13999}
### File: src/i18n_data/locale/sd_IN@devanagari.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("sd_IN@dev...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/sd_IN@devanagari.cc", "license": "mit", "size": 15514}
### File: src/i18n_data/locale/ta_LK.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3}; inline constexpr std::size_t numeric_grouping_storage[]{3,2}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("ta_LK"),.encoding=ts...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/ta_LK.cc", "license": "mit", "size": 15229}
### File: src/i18n_data/locale/tcy_IN.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("tcy_IN"),.encoding=...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/tcy_IN.cc", "license": "mit", "size": 14104}
### File: src/i18n_data/locale/th_TH.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr basic_lc_time_era<char> time_era_storage[]{{.direction=true,.offset=1,.start_date_year=-543,.start_date_month=1,.start_date_day=1,.end_da...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/th_TH.cc", "license": "mit", "size": 16523}
### File: src/i18n_data/locale/unm_US.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3}; inline constexpr std::size_t numeric_grouping_storage[]{2,2,2,3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("unm_US"),.encod...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/unm_US.cc", "license": "mit", "size": 11988}
### File: src/i18n_data/locale/ur_IN.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t monetary_mon_grouping_storage[]{3,2}; inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr lc_all lc_all_global{.identification={.name=tsc("ur_IN"),.encoding=ts...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/ur_IN.cc", "license": "mit", "size": 13844}
### File: src/i18n_data/locale/zh_TW.cc #include"../localedef.h" namespace fast_io_i18n { namespace { inline constexpr std::size_t numeric_grouping_storage[]{3}; inline constexpr basic_lc_time_era<char> time_era_storage[]{{.direction=true,.offset=2,.start_date_year=1913,.start_date_month=1,.start_date_day=1,.end_da...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/locale/zh_TW.cc", "license": "mit", "size": 18188}
### File: src/i18n_data/localedef.h #pragma once #include<cstddef> #include<cstdint> namespace fast_io_i18n { template<typename T> struct basic_io_scatter_t { T const* base; std::size_t len; }; template<typename char_type> struct basic_lc_identification { basic_io_scatter_t<char_type> name{}; basic_io_scatter_t...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/localedef.h", "license": "mit", "size": 8880}
### File: src/i18n_data/main.h #pragma once #include<type_traits> namespace fast_io_i18n { template<typename char_type1,std::size_t n1,typename char_type2,std::size_t n2> inline constexpr bool compile_time_compare(char_type1 const (&a)[n1],char_type2 const (&b)[n2]) noexcept { if constexpr((sizeof(char_type1)!=sizeo...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "src/i18n_data/main.h", "license": "mit", "size": 1994}
### File: tests/0001.input/invalid_number.cc #include<fast_io.h> #include<fast_io_device.h> using namespace fast_io::io; int main() try { fast_io::u8ibuf_file ibf(u8"invalid.txt"); std::size_t s{}; scan(ibf,s); println(s); } catch(fast_io::parse_code code) { perrln(code); return 1; }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0001.input/invalid_number.cc", "license": "mit", "size": 250}
### File: tests/0002.printscan/print.cc #include<fast_io.h> using namespace fast_io::io; int main() { print("Hello World\n"); println("Hello World"); print(fast_io::out(),"Hello World\n"); println(fast_io::out(),"Hello World"); print(fast_io::u8out(),u8"Hello World\n"); println(fast_io::u8out(),u8"Hello World"...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0002.printscan/print.cc", "license": "mit", "size": 1027}
### File: tests/0002.printscan/scan.cc #include<string_view> #include<fast_io.h> using namespace fast_io::io; int main() { std::string_view str; fast_io::ibuffer_view ibv(str); std::size_t a; if(scan<true>(ibv,a)) println("not eof:",a); else print("EOF\n"); }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0002.printscan/scan.cc", "license": "mit", "size": 235}
### File: tests/0003.concat/constexpr.cc #include<string> #include<fast_io.h> #include<cassert> constexpr bool foo() { std::string str{fast_io::concat("abcwe")}; std::string str2{"abcwe"}; return str==str2; } static_assert(foo()); int main() { assert(foo()); }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0003.concat/constexpr.cc", "license": "mit", "size": 229}
### File: tests/0003.concat/integer.cc #include<string> #include<fast_io.h> #include<climits> using namespace fast_io::io; int main() { print(fast_io::concat(stdout),"\n", fast_io::concatln(stdout), fast_io::concatln(nullptr), fast_io::concatln(true), fast_io::concatln(fast_io::mnp::boolalpha(true)), fast_io::...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0003.concat/integer.cc", "license": "mit", "size": 861}
### File: tests/0004.floating/complex_double.cc #include<complex> #include<fast_io.h> using namespace fast_io::io; int main() { using namespace fast_io::mnp; println(std::complex{std::numeric_limits<double>::infinity(),std::numeric_limits<double>::infinity()},"\n", std::complex{std::numeric_limits<double>::min()...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0004.floating/complex_double.cc", "license": "mit", "size": 2082}
### File: tests/0004.floating/double.cc //should compile with -fsanitize=address -fsanitize=undefined to verify code #include<fast_io.h> using namespace fast_io::io; int main() { using namespace fast_io::mnp; println(std::numeric_limits<double>::infinity(),"\n", std::numeric_limits<double>::min(),"\n", std::nu...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0004.floating/double.cc", "license": "mit", "size": 1205}
### File: tests/0004.floating/float.cc //haven't finished do not print out float //should compile with -fsanitize=address -fsanitize=undefined to verify code #include<fast_io.h> #include<fast_io_unit/floating.h> using namespace fast_io::io; int main() { using namespace fast_io::mnp; println(std::numeric_limits<flo...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0004.floating/float.cc", "license": "mit", "size": 1283}
### File: tests/0004.floating/lc_double.cc //should compile with -fsanitize=address -fsanitize=undefined to verify code #include<fast_io.h> #include<fast_io_i18n.h> using namespace fast_io::io; int main() { using namespace fast_io::mnp; fast_io::native_l10n l10n(""); println(imbue(l10n,fast_io::c_stdout()),std::n...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0004.floating/lc_double.cc", "license": "mit", "size": 1294}
### File: tests/0004.floating/rounding.cc #include<fast_io.h> #include<charconv> int main() { println(4.8371439708550857e+306); char buffer[30]; auto [p,ec]=std::to_chars(buffer,buffer+30,4.8371439708550857e+306); write(fast_io::c_stdout(),buffer,p); }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0004.floating/rounding.cc", "license": "mit", "size": 218}
### File: tests/0004.floating/scientific_0.cc #include<fast_io.h> #include<fast_io_i18n.h> using namespace fast_io::io; int main() { using namespace fast_io::mnp; fast_io::native_l10n loc(""); constexpr float value{-2.271745e-01f}; print("general:\t",value,"\t",comma_general(value),"\n" "scientific:\t",scienti...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0004.floating/scientific_0.cc", "license": "mit", "size": 646}
### File: tests/0004.floating/test_all_float32.cc #include<fast_io.h> #include<fast_io_device.h> #include<fast_io_crypto.h> #include<fast_io_driver/timer.h> using namespace fast_io::io; int main() { using namespace fast_io::mnp; fast_io::timer tm(u8"test float32 "); fast_io::sha256_context sha; { constexpr std:...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0004.floating/test_all_float32.cc", "license": "mit", "size": 557}
### File: tests/0004.floating/zero.cc //should compile with -fsanitize=address -fsanitize=undefined to verify code #include<fast_io.h> using namespace fast_io::io; int main() { using namespace fast_io::mnp; constexpr double zero{}; constexpr double minus_zero{-zero}; println(zero,"\n", minus_zero,"\n", fixed...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0004.floating/zero.cc", "license": "mit", "size": 734}
### File: tests/0005.lc_time/all_date_format.cc #include <string> #include <random> #include<fast_io.h> #include<fast_io_i18n.h> #include<fast_io_device.h> using namespace fast_io::io; int main() { fast_io::u8obuf_file f("u8out.txt"); std::u8string u8s(1000, u8'\0'); constexpr char const* files[]{ "aa_DJ","aa_E...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0005.lc_time/all_date_format.cc", "license": "mit", "size": 5694}
### File: tests/0006.output_device/constant_buffer_output_stream.cc #include<fast_io_device.h> #include<fast_io.h> using namespace fast_io::io; int main() { fast_io::obuf_file obf(u8"constant.txt"); println(obf,3); static_assert(fast_io::constant_buffer_output_stream<fast_io::obuf_file>); static_assert(fast_io::c...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0006.output_device/constant_buffer_output_stream.cc", "license": "mit", "size": 310}
### File: tests/0006.output_device/simplest.cc #include<fast_io.h> struct foo { using char_type = char8_t; }; inline constexpr foo io_value_handle(foo f) noexcept { return f; } inline void write(foo,char8_t const* first,char8_t const* last) { char8_t val{}; auto diff{last-first}; for(;first!=last;++first) va...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0006.output_device/simplest.cc", "license": "mit", "size": 1072}
### File: tests/0007.multiparas/11args.cc #include<fast_io.h> #include<climits> using namespace fast_io::io; int main() { println(2,3,4,5,6,7,8,9,"a",10,11,12); println(2,3,4,5,6,7,8,9,"a",10,11,12); println(2,3,4,5,6,7,8,9,"a",10,11,12); println(2,3,4,5,6,7,8,9,"a",10,11,12); println(2,3,4,5,6,7,8,9,"a",10,11,...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0007.multiparas/11args.cc", "license": "mit", "size": 862}
### File: tests/0007.multiparas/11args_unlocked.cc #include<fast_io.h> #include<climits> using namespace fast_io::io; int main() { auto cst{fast_io::c_stdout()}; fast_io::io_lock_guard guard{cst}; auto cstd_unlocked{cst.unlocked_handle()}; println(cstd_unlocked,2,3,4,5,6,7,8,9,"a",10,11,12); println(cstd_unlock...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0007.multiparas/11args_unlocked.cc", "license": "mit", "size": 1707}
### File: tests/0008.width/lc_width.cc #include<fast_io.h> #include<fast_io_i18n.h> using namespace fast_io::io; int main() { fast_io::native_l10n loc(""); println(imbue(loc,fast_io::c_stdout()),"rigstr\t",fast_io::mnp::internal("asf",10),"\n" "lft\t",fast_io::mnp::left(-10000,10),"\n" "mid\t",fast_io::mnp::mi...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0008.width/lc_width.cc", "license": "mit", "size": 609}
### File: tests/0008.width/width.cc #include<fast_io.h> using namespace fast_io::io; int main() { println("rigstr\t",fast_io::mnp::internal("asf",10),"\n" "lft\t",fast_io::mnp::left(-10000,10),"\n" "mid\t",fast_io::mnp::middle(-10000,10),"\n" "rig\t",fast_io::mnp::right(-10000,10),"\n" "int\t",fast_io::mnp:...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0008.width/width.cc", "license": "mit", "size": 522}
### File: tests/0009.http_header/head.cc #include<string_view> #include<fast_io.h> #include<fast_io_device.h> using namespace fast_io::io; int main() try { fast_io::http_header_buffer bf; fast_io::ibuf_file ibf(u8"test.txt"); scan(ibf,bf); println("request:",bf.request(),"\n" "code:",bf.code(),"\n" "reason:",b...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0009.http_header/head.cc", "license": "mit", "size": 428}
### File: tests/0010.intrinsics/umul.cc #include<fast_io.h> using namespace fast_io::io; int main() { constexpr std::uint_least64_t a{4124214124124112412ULL},b{61241241421441214ULL}; std::uint_least64_t high{}; std::uint_least64_t low{::fast_io::details::intrinsics::umul(a,b,high)}; println("high:",high," low:",...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0010.intrinsics/umul.cc", "license": "mit", "size": 289}
### File: tests/0011.manipulators/os_c_str.cc #include<fast_io.h> using namespace fast_io::io; int main() { char const* ptr{"Hello World from char const*\n"}; char8_t const* u8ptr{u8"Hello World from char8_t const*\n"}; char32_t const* u32ptr{U"Hello World from char32_t const*\n"}; print(fast_io::mnp::os_c_str(p...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0011.manipulators/os_c_str.cc", "license": "mit", "size": 398}
### File: tests/0012.umul/umul.cc #include<fast_io.h> using namespace fast_io::io; int main() { std::uint64_t high; std::uint64_t low=fast_io::details::intrinsics::umul(7941694176621304320ULL,11235582092889474423ULL,high); print(low," ",high); }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0012.umul/umul.cc", "license": "mit", "size": 220}
### File: tests/0013.pr_rsv/bounds_checking_array.cc #include<array> #include<fast_io.h> using namespace fast_io::io; int main() { std::array<char,20> buffer; //this would fail to compile auto i{::fast_io::pr_rsv_to_array(buffer,fast_io::mnp::scientific(2.21421421412412214124124))}; println("buffer size:",buffer...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0013.pr_rsv/bounds_checking_array.cc", "license": "mit", "size": 328}
### File: tests/0013.pr_rsv/bounds_checking_c_array.cc #include<fast_io.h> using namespace fast_io::io; int main() { char buffer[20]; //this would fail to compile auto i{::fast_io::pr_rsv_to_c_array(buffer,fast_io::mnp::scientific(2.21421421412412214124124))}; println("buffer size:",sizeof(buffer),"\ndata:",fast...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0013.pr_rsv/bounds_checking_c_array.cc", "license": "mit", "size": 297}
### File: tests/0013.pr_rsv/pr_rsv.cc #include<fast_io.h> using namespace fast_io::io; int main() { char buffer[::fast_io::pr_rsv_size<char,double>]; auto i{::fast_io::pr_rsv_to_c_array(buffer,2.21421421412412214124124)}; println("buffer size:",sizeof(buffer),"\ndata:",fast_io::mnp::strvw(buffer,i)); }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0013.pr_rsv/pr_rsv.cc", "license": "mit", "size": 274}
### File: tests/0013.pr_rsv/pr_rsv_scientific.cc #include<fast_io.h> using namespace fast_io::io; int main() { char buffer[::fast_io::pr_rsv_size<char,decltype(fast_io::mnp::scientific(2.21421421412412214124124))>]; auto i{::fast_io::pr_rsv_to_c_array(buffer,fast_io::mnp::scientific(2.21421421412412214124124))}; ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0013.pr_rsv/pr_rsv_scientific.cc", "license": "mit", "size": 355}
### File: tests/0014.integer/block_function_pointer.cc #include<fast_io.h> using namespace fast_io::io; int main() { println(main); }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0014.integer/block_function_pointer.cc", "license": "mit", "size": 81}
### File: tests/0014.integer/test_hex.cc #include<fast_io.h> using namespace fast_io::io; template<typename U,std::size_t n> inline void test_type() { print("start\n"); using namespace fast_io::mnp; U u{}; for(std::size_t i{};i<=n;++i) { println(i," ",hex(u)); u<<=4u; u|=0xF; } print("\n"); } int main(...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0014.integer/test_hex.cc", "license": "mit", "size": 478}
### File: tests/0014.integer/test_integer.cc #include<fast_io.h> #include<charconv> #include<random> #include<cassert> #include<cstring> using namespace fast_io::io; inline void test(std::uint_least64_t s) { char buffer[fast_io::pr_rsv_size<char,std::uint_least64_t>]; char charconv_buffer[fast_io::pr_rsv_size<char...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0014.integer/test_integer.cc", "license": "mit", "size": 1161}
### File: tests/0015.temp_file/tmp.cc #include<fast_io.h> using namespace fast_io::io; int main() { fast_io::native_file file(fast_io::io_temp); for(std::size_t i{};i!=1000;++i) print(file,"Hello World\n"); rewind(file); println("transmitted:",transmit(fast_io::c_stdout(),file)); }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0015.temp_file/tmp.cc", "license": "mit", "size": 256}
### File: tests/0016.address_sanitizer/reserve_printable.cc #include<fast_io.h> struct foo { }; inline constexpr std::size_t print_reserve_size(::fast_io::io_reserve_type_t<char,foo>) noexcept { return 5; } inline constexpr char* print_reserve_define(::fast_io::io_reserve_type_t<char,foo>,char* out,foo f) { out[...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0016.address_sanitizer/reserve_printable.cc", "license": "mit", "size": 514}
### File: tests/0017.error/error.cc #include<fast_io.h> #include<fast_io_device.h> using namespace fast_io::io; int main() try { fast_io::u8ibuf_file ibf("not_exist.txt"); } catch(fast_io::error e) { if(e==std::errc::no_such_file_or_directory) { perr("errc:no_such_file_or_directory\n"); } return 1; }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0017.error/error.cc", "license": "mit", "size": 278}
### File: tests/0017.error/reject.cc #include<cstdio> #include<fast_io.h> using namespace fast_io::io; int main() { char buffer[20]{};//must be a string literal print(buffer); }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0017.error/reject.cc", "license": "mit", "size": 148}
### File: tests/0017.error/reject_filename.cc #include<cstdio> #include<fast_io.h> int main() { char buffer[20]{};//must be a string literal fast_io::native_file nf(buffer,fast_io::open_mode::out); }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0017.error/reject_filename.cc", "license": "mit", "size": 160}
### File: tests/0018.operator_support/operator_output.cc #include<fast_io_legacy.h> struct my_custom_type {}; inline std::ostream& operator<<(std::ostream& out,my_custom_type) { return out<<"custom type"; } using namespace fast_io::io; int main() { my_custom_type m; println(fast_io::mnp::operator_output(m)); } ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0018.operator_support/operator_output.cc", "license": "mit", "size": 266}
### File: tests/0019.boost/uuid.cc #include<fast_io.h> #include<fast_io_driver/boost/uuid.h> #include<boost/uuid/uuid_generators.hpp> #include<boost/uuid/uuid_io.hpp> using namespace fast_io::io; int main() { boost::uuids::uuid uuid = boost::uuids::random_generator()(); println(uuid,"\nboost:",to_string(uuid)); }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0019.boost/uuid.cc", "license": "mit", "size": 287}
### File: tests/0020.scanners/contiguous_line_scanner.cc #include<string_view> #include<fast_io.h> #include<fast_io_device.h> using namespace fast_io::io; int main() { fast_io::native_file_loader loader(u8"test.txt"); fast_io::ibuffer_view view(loader); for(auto e: line_scanner(view)) { std::string_view ev{e};...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0020.scanners/contiguous_line_scanner.cc", "license": "mit", "size": 285}
### File: tests/0020.scanners/getline.cc #include<string> #include<fast_io_legacy.h> using namespace fast_io::io; int main() { fast_io::filebuf_file fbf(u8"test.txt",fast_io::open_mode::in); std::istream fin(fbf.fb); for(std::string line;std::getline(fin,line);println(line)); }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0020.scanners/getline.cc", "license": "mit", "size": 246}
### File: tests/0020.scanners/line_scanner.cc #include<string_view> #include<fast_io.h> #include<fast_io_device.h> using namespace fast_io::io; int main() { fast_io::ibuf_file ibf(u8"test.txt"); for(auto&& e: line_scanner(ibf)) { std::string_view ev{e}; println(ev); } }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0020.scanners/line_scanner.cc", "license": "mit", "size": 237}
### File: tests/0021.binary_serialization/le_get32.cc #include<fast_io.h> using namespace fast_io::io; int main() { std::uint_least32_t u; scan(fast_io::mnp::le_get<32>(u)); }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0021.binary_serialization/le_get32.cc", "license": "mit", "size": 129}
### File: tests/0021.binary_serialization/str_get_all.cc #include<string> #include<string_view> #include<bit> #include<fast_io.h> #include<fast_io_device.h> using namespace fast_io::io; int main() { using namespace fast_io::mnp; { fast_io::obuf_file obf(u8"a.txt"); std::string_view vw("sdgjasdopigjadsopgjdaspo...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "vincent_personan/fast_io", "path": "tests/0021.binary_serialization/str_get_all.cc", "license": "mit", "size": 529}