Change search
ReferencesLink to record
Permanent link

Direct link
Platform-independent code conversion within the C++ locale framework
KTH, School of Computer Science and Communication (CSC), Numerical Analysis and Computer Science, NADA.
2006 (English)In: Software, practice & experience, ISSN 0038-0644, E-ISSN 1097-024X, Vol. 36, no 15, 1643-1654 p.Article in journal (Refereed) Published
Abstract [en]

This paper describes some of the author's experiences from a C++ implementation of a concordance program for texts in Old West Norse (also known as Old Icelandic) and Runic Swedish. Since the input to the program used a character repertoire that no standard one-byte character encoding covers, it was natural to use Unicode to represent data both inside the program and in external files. Inside the program, each character was represented with C++ 'wide characters'; the input and output was represented in UTF-8. The author constructed C++ code conversion facets that convert data between those two representations during file I/O. This enabled him to successfully compile, and run, the concordance program on both Linux (Fedora Core 3 with gcc 3.4.2) and Windows XP (using Visual C++ NET 2003). The only necessary change to the source when changing platform was isolated to the lines selecting which code conversion facet to use-all other pieces of code remained unchanged. In particular, the author could still use the standard C++ locale framework for collation and code conversion, in spite of the fact that the library-provided code conversion facets had been replaced.

Place, publisher, year, edition, pages
2006. Vol. 36, no 15, 1643-1654 p.
Keyword [en]
C plus, locale, code conversion
National Category
Computer Science
URN: urn:nbn:se:kth:diva-37483DOI: 10.1002/spe.734ISI: 000242699900001ScopusID: 2-s2.0-33845257537OAI: diva2:434043
Available from: 2011-08-12 Created: 2011-08-12 Last updated: 2011-08-12Bibliographically approved

Open Access in DiVA

No full text

Other links

Publisher's full textScopus

Search in DiVA

By author/editor
Engebretsen, Lars
By organisation
Numerical Analysis and Computer Science, NADA
In the same journal
Software, practice & experience
Computer Science

Search outside of DiVA

GoogleGoogle Scholar
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

Altmetric score

Total: 21 hits
ReferencesLink to record
Permanent link

Direct link