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.
Thanks.
--
Rob Wilkerson
~~~
TED]
Sent: Wednesday, April 19, 2006 9:28 AM
To: CF-Talk
Subject: Get String Byte Size
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 b
ht to ludacris speed.
> -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 retrieve the number of bytes in a string
> /without
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
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
> 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
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
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
>
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 co
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
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
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
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
13 matches
Mail list logo