home MP3Rage MediaRage WebDevil MAK







 

Text Coder Service

TextCoderService is a service plug-in that will convert text in one format into another from any application that supports the Services menu available in Mac OS X (virtually any Cocoa app and many Carbon apps). It supports the following conversions:

  • Base-64 to UTF-8: Decodes the selected Base-64 text and converts it to UTF-8.
  • Base-64 to UTF-16: Decodes the selected Base-64 text and converts it to UTF-16 (big or little endian).
  • FourCharCodes to Hex and Comment: This is mainly for programmers. It converts any Mac-style FourCharCodes into their hex equivalent and adds a comment showing the ASCII equivalent. This is useful for converting FourCharCodes into hex constants for compilers that do not support FourCharCodes. For example, it converts:

    enum
    {
    kMyConstant1 = 'abcd',
    kMyConstant2 = 'bcde'
    };

    into

    enum
    {
    kMyConstant1 = 0x61626364, // 'abcd'
    kMyConstant2 = 0x62636465 // 'bcde'
    };
  • Hex to C-style Byte Array. This is mainly for programmers. It converts a
    raw hex array into a C-style array that can be included directly in code.
    For example, it converts:

    001122334455

    into

    static const uint8_t kMyArray[] =
    {
    0x00, 0x11, 0x22, 0x33, 0x44, 0x55
    };

  • Hex to UTF-8: Converts hex into UTF-8.
  • Hex to UTF-16: Converts hex into UTF-16 (big or little endian).
  • Java Unicode Escape: Escapes any non-ASCII characters in text using the standard \u syntax (e.g. \u00E9 for an e with an accent).
  • Java Unicode Unescape: Unescapes any \u-escaped sequences into their Unicode equivalents (e.g. \u00E9 into an e e with an accent).
  • Number to Binary/Decimal/Hex/Octal Number: Converts a number to its Binary/Decimal/Hex/Octal equivalent number (e.g. 10->1010 (binary), 0x10->16 (decimal), etc.).
  • UTF-8 to Base-64: Encodes text as UTF-8 then encodes that as Base-64.
  • UTF-8 to Hex: Encodes text as UTF-8 then encodes that as hex.
  • UTF-16 to Base-64: Encodes text as UTF-16 then encodes that as Base-64.
  • UTF-16 to Hex: Encodes text as UTF-16 then encodes that as hex.

 

Copyright © 2005 Chaotic Software, All rights reserved.