|
From: | Rob Savoye |
Subject: | Re: [Gnash-commit] /srv/bzr/gnash/trunk r11336: HTML font tag |
Date: | Thu, 30 Jul 2009 07:18:02 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2 |
On 07/30/09 02:36, Benjamin Wolsey wrote:
std::strtol isn't nearly as flexible as a stringstream. Using the tests I added (and your own new ones), it should be possible to add a nice stringstream conversion function for the rgba class, which could take a string and fill in the rgba slots (this could be a free function like:
As I discovered on something else, stringstream prefers decimal, and doesn't handle hex. While strtol() is less preferable, it does handles Hex.
- rob -
[Prev in Thread] | Current Thread | [Next in Thread] |