Click here to Skip to main content
11,490,007 members (58,658 online)

Articles by Orjan Westin (Technical Blogs: 12, Tip/Tricks: 3)

Technical Blogs: 12, Tip/Tricks: 3

RSS Feed
No articles have been posted.

Average blogs rating: 4.65

C / C++ Language
Howto
Posted: 5 Aug 2010   Updated: 5 Aug 2010   Views: 17,630   Rating: 4.00/5    Votes: 2   Popularity: 1.20
Licence: The BSD License      Bookmarked: 11   Downloaded: 0
A static, or compile-time, assert for C++
Memory Management
Posted: 5 Aug 2010   Updated: 5 Aug 2010   Views: 5,430   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The BSD License      Bookmarked: 5   Downloaded: 0
A shared_ptr memory manager for the Xerces XML parser
Posted: 5 Aug 2010   Updated: 5 Aug 2010   Views: 7,600   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The BSD License      Bookmarked: 5   Downloaded: 0
Xerces is a powerful validating XML parser, which needs some care to avoid memory leaks. Here is a helper for that.
Templates
Posted: 5 Aug 2011   Updated: 5 Aug 2011   Views: 14,410   Rating: 4.33/5    Votes: 3   Popularity: 2.15
Licence: The BSD License      Bookmarked: 4   Downloaded: 0
Using template specialisation to create code handling common base64 encoding varieties
Utilities
Posted: 5 Aug 2010   Updated: 5 Aug 2010   Views: 8,280   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The BSD License      Bookmarked: 3   Downloaded: 0
Revisiting an old function to convert hexadecimal strings into integer byte arrays
Posted: 5 Aug 2010   Updated: 5 Aug 2010   Views: 15,850   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The BSD License      Bookmarked: 8   Downloaded: 0
Converting any contents of a memory buffer into a hexadecimal string and back
Posted: 5 Aug 2010   Updated: 9 Aug 2010   Views: 12,860   Rating: 4.45/5    Votes: 10   Popularity: 4.45
Licence: The BSD License      Bookmarked: 11   Downloaded: 0
Safely defining integer bounds at compile-time
Posted: 5 Aug 2010   Updated: 10 Aug 2010   Views: 9,810   Rating: 4.56/5    Votes: 6   Popularity: 3.89
Licence: The BSD License      Bookmarked: 11   Downloaded: 0
Declaring a range of any type
Posted: 10 Aug 2010   Updated: 10 Aug 2010   Views: 8,980   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The BSD License      Bookmarked: 8   Downloaded: 0
Splitting or tokenizing a string into substrings divided by a separator
Posted: 12 Aug 2010   Updated: 12 Aug 2010   Views: 15,810   Rating: 4.50/5    Votes: 4   Popularity: 2.71
Licence: The BSD License      Bookmarked: 10   Downloaded: 0
How would you remove all whitespace from a std::string? Here's a look at a number of different ways.
Posted: 18 Oct 2012   Updated: 21 Oct 2012   Views: 9,300   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The BSD License      Bookmarked: 8   Downloaded: 0
There are no standard string tokenisers in C++, except for strtok from the C library. While there are many tokenisers written by fellow programmers available, they tend to forget one of the strengths of strtok, which I implement in C++ here.
Threads, Processes & IPC
General
Posted: 12 Nov 2012   Updated: 13 Nov 2012   Views: 5,900   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The BSD License      Bookmarked: 10   Downloaded: 74
In this article, we will write a simple multi-threaded example implementation of the Observer pattern, and show how to re-synchronise a past event to look current. Then we’ll demonstrate a technique to treat future events like they’re current, too.

Average tips rating: 4.78

C / C++ Language
Command line processing
Posted: 15 Nov 2013   Updated: 15 Nov 2013   Views: 4,910   Rating: 4.83/5    Votes: 4   Popularity: 2.86
Licence: The BSD License      Bookmarked: 7   Downloaded: 0
Reading an input of any type, or simply enter, from the command line
Memory Management
Posted: 6 Nov 2014   Updated: 6 Nov 2014   Views: 7,040   Rating: 5.00/5    Votes: 9   Popularity: 4.77
Licence: The BSD License      Bookmarked: 22   Downloaded: 0
Simplifying the use of dynamically sized C structs
Win32/64 SDK & OS
General
Posted: 19 Oct 2012   Updated: 19 Oct 2012   Views: 13,210   Rating: 4.50/5    Votes: 2   Popularity: 1.20
Licence: The BSD License      Bookmarked: 2   Downloaded: 0
Simple function to get the text message corresponding to a system error.
No reference articles have been posted.

Orjan Westin

United Kingdom United Kingdom
Orjan has worked as a professional developer - in Sweden and England - since 1993, using a wide range of languages (C++, Pascal, Delphi, C, C#, Visual Basic, PHP, Python and x86 assembler), but tends to return to C++.


Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 27 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid