🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16030

Re: Hexadecimal string to string

#16030
From: Omer Azhar Qureshi
Date: Thu, 08 Apr 1999 00:00
28 lines
1551 bytes
Tor,
thats a very nice solution, it eliminates the unessacary overheads as well
as the string concatination overheads which r very heavy....
and i believe that the String2Hex function in my eariler post should also be
modified like this for better performance.... ;)

   public static String String2Hex (String CharString)
   {
    StringBuffer HexString = new StringBuffer ();
          char cChar;
    int iNumber;
    int iLength = CharString.length ();

    for (int iIndex = 0; iIndex < iLength; ++iIndex)
    {
        cChar = CharString.charAt(iIndex);
        iNumber = (int) cChar;
        HexString.append (Integer.toHexString(iNumber));
    }

    return HexString.toString ();
   }

well Yolanda if u read these posts i suggest that u should use this new &
imporved code as its much more optimized and also offer that beer invitation
to Tor.... ;)
well have a nice day.... :)
Oaq
Technical Details
Message-ID: <7ehvjg$1hs8@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7doad4$7fo14@forums.borland.com> <uaewmgk1b.fsf@sds.no> <7ehpfh$1i54@forums.borland.com> <uhfqrbivk.fsf@sds.no>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,b25984f20866b948
X-Google-Attributes: gidf74b3,public
From: "Omer Azhar Qureshi" <oaq@systemeltd.com.pk>
Subject: Re: Hexadecimal string to string
Date: 1999/04/08
Message-ID: <7ehvjg$1hs8@forums.borland.com>
X-Deja-AN: 463983714
References: <7doad4$7fo14@forums.borland.com> <uaewmgk1b.fsf@sds.no> <7ehpfh$1i54@forums.borland.com> <uhfqrbivk.fsf@sds.no>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.language