I thought java stored all strings as double-byte unicode. Is this
incorrect? That would make it len(string) * 16
Leon
-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 20, 2006 9:13 AM
To: CF-Talk
Subject: RE: Get String Byte Size
Oops yes, / 8
Oops yes, / 8
The OS and cluster sizes may also make a difference ;-)
..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-Original Message-
From: Loathe [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 20, 2006 10:05 AM
To: CF-Talk
Subject: RE: Get String Byte Size
That just returns the number of characters, not the file size those
characters would have.
-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 20, 2006 9:00 AM
To: CF-Talk
Subject: RE: Get String Byte Size
Wouldn't that just be len(s
lto:[EMAIL PROTECTED]
Sent: Thursday, April 20, 2006 10:00 AM
To: CF-Talk
Subject: RE: Get String Byte Size
Wouldn't that just be len(string) ?
...:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-Original Message-
From: Rob Wilkerson [mailto:[EMAIL PROTECTED]
Sent: W
Wouldn't that just be len(string) ?
..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-Original Message-
From: Rob Wilkerson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 19, 2006 9:28 AM
To: CF-Talk
Subject: Get String Byte Size
Anyone have any quick code to r
just checking the length.
>
> -Original Message-
> From: Nick de Voil [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 19, 2006 9:47 PM
> To: CF-Talk
> Subject: Re: Get String Byte Size
>
> > Anyone have any quick code to retrieve the number of bytes in a string
>
best off
just checking the length.
-Original Message-
From: Nick de Voil [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 19, 2006 9:47 PM
To: CF-Talk
Subject: Re: Get String Byte Size
> Anyone have any quick code to retrieve the number of bytes in a string
> /without/ writing t
> Anyone have any quick code to retrieve the number of bytes in a string
> /without/ writing the string to a file first? I'm trying to do a
> little debugging and I'd like to know the size of a string that is
> being returned to the browser.
The number of bytes occupied in the application's memor
ew York, NY 10001
212.691.1134 x 14
212.691.3477 fax
www.nylontechnology.com
Sanders: Lightspeed too slow?
Helmet: Yes we'll have to go right to ludacris speed.
-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 19, 2006 10:03 AM
To: CF-Talk
Subject: RE: Get
From: Rob Wilkerson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 19, 2006 8:57 AM
To: CF-Talk
Subject: Re: Get String Byte Size
And therein lies the key. I may - or may not - have unicode involved.
I was hoping someone knew of some quick java to return the byte size
of a string that would ha
And therein lies the key. I may - or may not - have unicode involved.
I was hoping someone knew of some quick java to return the byte size
of a string that would handle those vagaries. I haven't found
anything in my searches.
On 4/19/06, Ben Nadel <[EMAIL PROTECTED]> wrote:
> Rob,
>
> Character
Rob,
Characters take up one byte... As far as I know... Althoug unicode may take
up 4?? I can't remember. I suppose the best estimate would be to multiply
the string length by the byte size of each characters:
intSizeEstimate = Len( strFileContent ) * 4
-b
...
Ben Nadel
Web
12 matches
Mail list logo