A ring buffer for audio samples
At Fliva we work with audio (we have a c++ library that essentially works as a audio sequencer), video (we have a rendering engine which basically works as a scriptable After Effects clone) and we do transcoding, muxing and all that jazz…
Trim Strings in C++ with Boost
One of the biggest grievances with I had when I started writing a lot of c++ code was that a lot of things that we take for granted as built in things in other (primarily dynamic) languages are all a bit harder to do (right) in c++. This means that for things like simple string manipulation you often need outside help. For the most common cases though, there is boost.
Split Strings in C++ With Boost
I just wrote about how to trim strings with boost. The code where I first needed to trim a string, was actually very simple naive parser where strings of key value pairs would be split, and then each part trimmed to ensure that both key and value was without leading and trailing whitespace. When you want to split a string in c++ you again probably want to use the boost library - more specifically boost/algorithm/string/split.hpp. This allows you to split a string by a character (or rather a substring) into a vector of strings.