Boost C++ Libraries: Ticket #7064: hex() with flag for lowercase output https://svn.boost.org/trac10/ticket/7064 <p> Could you provide a paramter for hex() to indicate lowercase output is desired? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7064 Trac 1.4.3 Marshall Clow Mon, 02 Jul 2012 15:17:08 GMT <link>https://svn.boost.org/trac10/ticket/7064#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7064#comment:1</guid> <description> <p> Is there a use case here? Some existing piece of software that does unhex that only accepts lower case hex digits? </p> </description> <category>Ticket</category> </item> <item> <author>Olaf van der Spek <olafvdspek@…></author> <pubDate>Mon, 02 Jul 2012 15:27:26 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7064#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7064#comment:2</guid> <description> <p> Yes. Existing software currently using lowercase output and not wanting to change the output just to take advantage of these Boost functions. </p> </description> <category>Ticket</category> </item> <item> <author>nigels.com@…</author> <pubDate>Fri, 29 Jan 2016 01:14:27 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7064#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7064#comment:3</guid> <description> <p> Agreed, I prefer to match the output of commandline sha256sum, than have to do the upper to lower case fix. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Fri, 29 Jan 2016 07:22:20 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7064#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7064#comment:4</guid> <description> <p> Olaf - I asked if there was "some piece of software that does unhex that only accepts lower case hex digits", and you said "Yes", but gave no examples. </p> <p> Nigels - You prefer to match the output of <code>sha256sum</code>, but this isn't a checksuming routine. This encodes the bytes into a hex stream. </p> </description> <category>Ticket</category> </item> <item> <author>nigels.com@…</author> <pubDate>Fri, 29 Jan 2016 07:58:00 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7064#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7064#comment:5</guid> <description> <p> Hi Marhsall - my specific task was to convert binary hash to a hex string matching the output of sha256sum. It made me sad to have to write that manually, rather than use boost::algorithm::hex() A hex_lower() alternative, perhaps? I'd point out that hex_char_to_int already supports lower case. </p> </description> <category>Ticket</category> </item> <item> <author>Olaf van der Spek <olafvdspek@…></author> <pubDate>Fri, 29 Jan 2016 08:11:21 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7064#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7064#comment:6</guid> <description> <p> Ah, I misread your question. I don't know if only lowercase is accepted, but I'd like to have full control over the output without having to pipe it through to_lower. </p> </description> <category>Ticket</category> </item> <item> <author>nigels.com@…</author> <pubDate>Sun, 31 Jan 2016 09:15:17 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7064#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7064#comment:7</guid> <description> <p> I proposed a patch on github: <a class="ext-link" href="https://github.com/boostorg/algorithm/pull/14"><span class="icon">​</span>https://github.com/boostorg/algorithm/pull/14</a> </p> </description> <category>Ticket</category> </item> </channel> </rss>