Skip to content

Commit 201dc89

Browse files
author
expnkx
committed
fprint missing
ryu upper case bug license
1 parent 949be5d commit 201dc89

File tree

6 files changed

+14
-7
lines changed

6 files changed

+14
-7
lines changed

examples/0012.ucs/emoji.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ int main()
55
{
66
using namespace fast_io;
77

8-
fast_io::ucs<fast_io::obuf,char32_t> view("emoji.txt");
8+
fast_io::ucs<fast_io::obuf,char32_t> view(u8"emoji.txt");
99
auto &ob(view.native_handle());
1010

11-
std::string_view const emoji("☭🚄😀我wubi😄😊😉😍😘😚😜😝😳😁😣😢😂😭😪😥😰😩㍿🀀🀁🀂🀃🀄🀅🀆🀇🀈🀉🀊🀋🀌🀍🀎🀏");
11+
std::u8string_view const emoji(u8"☭🚄😀我wubi😄😊😉😍😘😚😜😝😳😁😣😢😂😭😪😥😰😩㍿🀀🀁🀂🀃🀄🀅🀆🀇🀈🀉🀊🀋🀌🀍🀎🀏");
1212
println(ob,u8"original emoji string:\n",emoji);
1313
for(auto const & e : emoji)
1414
print(ob,unsigned_view(e),u8" ");

examples/0012.ucs/hello_ucs_world.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
int main()
44
{
55
fast_io::ucs<decltype(fast_io::out),wchar_t> view(fast_io::out);
6-
print(view,L"Hello ucs World! I am print! My number is ",0,fast_io::char_view('\n'));
6+
print(view,L"Hello ucs World! I am print! My number is ",0,fast_io::char_view(L'\n'));
77
println(view,L"Hello ucs World! I am println! My number is ",1);
88
fprint(view,L"Hello ucs World! I am fprint! My number is %\n",2);
99
print_flush(view,L"Hello ucs World! I am print_flush! My number is ",3,fast_io::char_view('\n'));

examples/0012.ucs/test_ucs.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
int main()
66
{
77
using namespace fast_io;
8-
fast_io::obuf ob("test_ucs.txt");
8+
fast_io::obuf ob(u8"test_ucs.txt");
99
for(char32_t i(0);i!=1000000;++i)
1010
{
1111
std::u32string str(1,i);

examples/0012.ucs/ucs.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
int main()
44
{
5-
fast_io::ucs<fast_io::obuf,char32_t> view("test_ucs.txt");
5+
fast_io::ucs<fast_io::obuf,char32_t> view(u8"test_ucs.txt");
66
for(char32_t i(0);i!=200000;++i)
7-
println(view,i,fast_io::char_view('\t'),fast_io::char_view(i));
7+
println(view,i,fast_io::char_view(u8'\t'),fast_io::char_view(i));
88
}

include/fast_io_core_impl/print_scan.h

+7
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,13 @@ inline void fprint_impl(os &out,std::basic_string_view<ch_type> format,T&& cr,Ar
300300
fprint_impl(out,format,std::forward<Args>(args)...);
301301
}
302302

303+
template<output_stream output,typename ...Args>
304+
requires(printable<output,Args>&&...)
305+
inline constexpr void normal_fprint(output &out,std::basic_string_view<typename output::char_type> mv,Args&& ...args)
306+
{
307+
fprint_impl(out,mv,std::forward<Args>(args)...);
308+
}
309+
303310
}
304311

305312
template<output_stream output,typename ...Args>

license.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/******************************************************************************
22
The MIT License (MIT)
3-
Copyright (c) 2016-2019 cqwrteur
3+
Copyright (c) 2016-2020 cqwrteur
44
Permission is hereby granted, free of charge, to any person obtaining a copy
55
of this software and associated documentation files (the "Software"), to deal
66
in the Software without restriction, including without limitation the rights

0 commit comments

Comments
 (0)