4 Dec 2004 Archit   » (Journeyer)

So I was working on a class project (a small interpreter for a mini scheme like language, more about it some other time), and I bumped into a weird C++ thing. There is no std::string::tolower() or std::string::toupper() function. You'll have to do something like

std::transform(str.begin(), str.end(), str.begin(), std::tolower())

for example to tolower all the chars in a string. As it is not that difficult to see, the "Transform way" involves more typing, and well...awkward a bit.

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!