Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - duden() convert accented characters to vowel equivalents http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 duden()             Convert accented characters to vowel equivalents
------------------------------------------------------------------------------
 Declaration
   string.hdr

 Syntax
   func char duden extern
   param const char cString

 Arguments
   cString is a character string.

 Return
   A string derived from the input string with special characters converted.

 Description
   This function converts extended special characters (like the German
   "Umlauts") into their normal vowel equivalents. This conversion can be
   used to index a file according to the sorting scheme of the "Duden"
   dictionary (many other publications use the same scheme).

   Table of conversions:

   Original | Expansion
   ---------+----------
     .      |   a
     .      |   o
     .      |   u
     .      |   s
     .      |   A
     .      |   O
     .      |   U

 Example
   #define EXAMPLE_STRING
   #include example.hdr

   proc Test_duden
   ? duden( ".gypten" )        // Agypten
   ? duden( ".sterreich" )     // Osterreich
   ? duden( ".bergang" )       // Ubergang
   ? duden( "Ges.." )          // Gesas
   ? duden( "l.ssig" )         // lassig
   ? duden( "bl.d" )           // blod
   ? duden( "Gem.t" )          // Gemut
   endproc

   proc main
   Test_duden()
   endproc

See Also: cnvumlt()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson