Topic: std::string analogue for printf formating
Author: denisx9.0c@gmail.com
Date: Sun, 7 Oct 2018 01:15:56 -0700 (PDT)
Raw View
------=_Part_56_374129987.1538900156992
Content-Type: multipart/alternative;
boundary="----=_Part_57_900565228.1538900156992"
------=_Part_57_900565228.1538900156992
Content-Type: text/plain; charset="UTF-8"
Hi all,
Are there any proposals about std::string formating?
I think it should be useful to have something like
int firstArg = 0;
std::string secondArg = "Ha-ha";
std::string("This is first arg %1 and this is last %2").args(firstArg,
secondArg);
args() would be function with variable template list.
--
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/337ace31-035c-42cf-9fae-e4ed30187ec3%40isocpp.org.
------=_Part_57_900565228.1538900156992
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Hi all,<div><br></div><div>Are there any proposals about s=
td::string formating?</div><div>I think it should be useful to have somethi=
ng like</div><div><br></div><div>int firstArg =3D 0;</div><div>std::string =
secondArg =3D "Ha-ha";</div><div><br></div><div>std::string("=
;This is first arg %1 and this is last %2").args(firstArg, secondArg);=
</div><div><br></div><div>args() would be function with variable template l=
ist.</div></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/337ace31-035c-42cf-9fae-e4ed30187ec3%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/337ace31-035c-42cf-9fae-e4ed30187ec3=
%40isocpp.org</a>.<br />
------=_Part_57_900565228.1538900156992--
------=_Part_56_374129987.1538900156992--
.
Author: Corentin <corentin.jabot@gmail.com>
Date: Sun, 7 Oct 2018 10:19:34 +0200
Raw View
--000000000000dbb2ed05779f2a34
Content-Type: text/plain; charset="UTF-8"
This is what you are looking for https://wg21.link/p0645r2
On Sun, 7 Oct 2018 at 10:15 <denisx9.0c@gmail.com> wrote:
> Hi all,
>
> Are there any proposals about std::string formating?
> I think it should be useful to have something like
>
> int firstArg = 0;
> std::string secondArg = "Ha-ha";
>
> std::string("This is first arg %1 and this is last %2").args(firstArg,
> secondArg);
>
> args() would be function with variable template list.
>
> --
> You received this message because you are subscribed to the Google Groups
> "ISO C++ Standard - Future Proposals" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to std-proposals+unsubscribe@isocpp.org.
> To post to this group, send email to std-proposals@isocpp.org.
> To view this discussion on the web visit
> https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/337ace31-035c-42cf-9fae-e4ed30187ec3%40isocpp.org
> <https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/337ace31-035c-42cf-9fae-e4ed30187ec3%40isocpp.org?utm_medium=email&utm_source=footer>
> .
>
--
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CA%2BOm%2BShrxOn4-VqCNsu3XTep3sUadF8GQTmcYb2Tt0-Pzm13MA%40mail.gmail.com.
--000000000000dbb2ed05779f2a34
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">This is what you are looking for=C2=A0<a href=3D"https://w=
g21.link/p0645r2">https://wg21.link/p0645r2</a></div><br><div class=3D"gmai=
l_quote"><div dir=3D"ltr">On Sun, 7 Oct 2018 at 10:15 <<a href=3D"mailto=
:denisx9.0c@gmail.com">denisx9.0c@gmail.com</a>> wrote:<br></div><blockq=
uote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc =
solid;padding-left:1ex"><div dir=3D"ltr">Hi all,<div><br></div><div>Are the=
re any proposals about std::string formating?</div><div>I think it should b=
e useful to have something like</div><div><br></div><div>int firstArg =3D 0=
;</div><div>std::string secondArg =3D "Ha-ha";</div><div><br></di=
v><div>std::string("This is first arg %1 and this is last %2").ar=
gs(firstArg, secondArg);</div><div><br></div><div>args() would be function =
with variable template list.</div></div>
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org" target=3D"_=
blank">std-proposals+unsubscribe@isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank">std-proposals@isocpp.org</a>.<br>
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/337ace31-035c-42cf-9fae-e4ed30187ec3%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter" target=3D"_blank">=
https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/337ace31-035c-=
42cf-9fae-e4ed30187ec3%40isocpp.org</a>.<br>
</blockquote></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/CA%2BOm%2BShrxOn4-VqCNsu3XTep3sUadF8G=
QTmcYb2Tt0-Pzm13MA%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter"=
>https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CA%2BOm%2BShr=
xOn4-VqCNsu3XTep3sUadF8GQTmcYb2Tt0-Pzm13MA%40mail.gmail.com</a>.<br />
--000000000000dbb2ed05779f2a34--
.
Author: denisx9.0c@gmail.com
Date: Sun, 7 Oct 2018 01:46:34 -0700 (PDT)
Raw View
------=_Part_203_1219429080.1538901994439
Content-Type: multipart/alternative;
boundary="----=_Part_204_1279993216.1538901994440"
------=_Part_204_1279993216.1538901994440
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Thanks, it is exactly that I was looking for.
=D0=B2=D0=BE=D1=81=D0=BA=D1=80=D0=B5=D1=81=D0=B5=D0=BD=D1=8C=D0=B5, 7 =D0=
=BE=D0=BA=D1=82=D1=8F=D0=B1=D1=80=D1=8F 2018 =D0=B3., 11:19:48 UTC+3 =D0=BF=
=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C Corentin=
=20
=D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB:
>
> This is what you are looking for https://wg21.link/p0645r2
>
> On Sun, 7 Oct 2018 at 10:15 <denis...@gmail.com <javascript:>> wrote:
>
>> Hi all,
>>
>> Are there any proposals about std::string formating?
>> I think it should be useful to have something like
>>
>> int firstArg =3D 0;
>> std::string secondArg =3D "Ha-ha";
>>
>> std::string("This is first arg %1 and this is last %2").args(firstArg,=
=20
>> secondArg);
>>
>> args() would be function with variable template list.
>>
>> --=20
>> You received this message because you are subscribed to the Google Group=
s=20
>> "ISO C++ Standard - Future Proposals" group.
>> To unsubscribe from this group and stop receiving emails from it, send a=
n=20
>> email to std-proposal...@isocpp.org <javascript:>.
>> To post to this group, send email to std-pr...@isocpp.org <javascript:>.
>> To view this discussion on the web visit=20
>> https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/337ace31-03=
5c-42cf-9fae-e4ed30187ec3%40isocpp.org=20
>> <https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/337ace31-0=
35c-42cf-9fae-e4ed30187ec3%40isocpp.org?utm_medium=3Demail&utm_source=3Dfoo=
ter>
>> .
>>
>
--=20
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/aae591e8-ec82-47ab-b8d8-ac9e5e2d0325%40isocpp.or=
g.
------=_Part_204_1279993216.1538901994440
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Thanks, it is exactly that I was looking for.<br><br>=D0=
=B2=D0=BE=D1=81=D0=BA=D1=80=D0=B5=D1=81=D0=B5=D0=BD=D1=8C=D0=B5, 7 =D0=BE=
=D0=BA=D1=82=D1=8F=D0=B1=D1=80=D1=8F 2018 =D0=B3., 11:19:48 UTC+3 =D0=BF=D0=
=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C Corentin =
=D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB:<blockquote class=3D"gmail_quote=
" style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding=
-left: 1ex;"><div dir=3D"ltr">This is what you are looking for=C2=A0<a href=
=3D"https://wg21.link/p0645r2" target=3D"_blank" rel=3D"nofollow" onmousedo=
wn=3D"this.href=3D'https://www.google.com/url?q\x3dhttps%3A%2F%2Fwg21.l=
ink%2Fp0645r2\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGkjlvFUECfsmiCTdKgOGo=
xS-Osxw';return true;" onclick=3D"this.href=3D'https://www.google.c=
om/url?q\x3dhttps%3A%2F%2Fwg21.link%2Fp0645r2\x26sa\x3dD\x26sntz\x3d1\x26us=
g\x3dAFQjCNGkjlvFUECfsmiCTdKgOGoxS-Osxw';return true;">https://wg21.lin=
k/p0645r2</a></div><br><div class=3D"gmail_quote"><div dir=3D"ltr">On Sun, =
7 Oct 2018 at 10:15 <<a href=3D"javascript:" target=3D"_blank" gdf-obfus=
cated-mailto=3D"tj51bDexAwAJ" rel=3D"nofollow" onmousedown=3D"this.href=3D&=
#39;javascript:';return true;" onclick=3D"this.href=3D'javascript:&=
#39;;return true;">denis...@gmail.com</a>> wrote:<br></div><blockquote c=
lass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;=
padding-left:1ex"><div dir=3D"ltr">Hi all,<div><br></div><div>Are there any=
proposals about std::string formating?</div><div>I think it should be usef=
ul to have something like</div><div><br></div><div>int firstArg =3D 0;</div=
><div>std::string secondArg =3D "Ha-ha";</div><div><br></div><div=
>std::string("This is first arg %1 and this is last %2").args(fir=
stArg, secondArg);</div><div><br></div><div>args() would be function with v=
ariable template list.</div></div>
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"javascript:" target=3D"_blank" gdf-obfuscated-mailto=3D"=
tj51bDexAwAJ" rel=3D"nofollow" onmousedown=3D"this.href=3D'javascript:&=
#39;;return true;" onclick=3D"this.href=3D'javascript:';return true=
;">std-proposal...@<wbr>isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"javascript:" target=3D"_bla=
nk" gdf-obfuscated-mailto=3D"tj51bDexAwAJ" rel=3D"nofollow" onmousedown=3D"=
this.href=3D'javascript:';return true;" onclick=3D"this.href=3D'=
;javascript:';return true;">std-pr...@isocpp.org</a>.<br>
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/337ace31-035c-42cf-9fae-e4ed30187ec3%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter" target=3D"_blank" =
rel=3D"nofollow" onmousedown=3D"this.href=3D'https://groups.google.com/=
a/isocpp.org/d/msgid/std-proposals/337ace31-035c-42cf-9fae-e4ed30187ec3%40i=
socpp.org?utm_medium\x3demail\x26utm_source\x3dfooter';return true;" on=
click=3D"this.href=3D'https://groups.google.com/a/isocpp.org/d/msgid/st=
d-proposals/337ace31-035c-42cf-9fae-e4ed30187ec3%40isocpp.org?utm_medium\x3=
demail\x26utm_source\x3dfooter';return true;">https://groups.google.com=
/a/<wbr>isocpp.org/d/msgid/std-<wbr>proposals/337ace31-035c-42cf-<wbr>9fae-=
e4ed30187ec3%40isocpp.org</a><wbr>.<br>
</blockquote></div>
</blockquote></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/aae591e8-ec82-47ab-b8d8-ac9e5e2d0325%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/aae591e8-ec82-47ab-b8d8-ac9e5e2d0325=
%40isocpp.org</a>.<br />
------=_Part_204_1279993216.1538901994440--
------=_Part_203_1219429080.1538901994439--
.