Get String Byte Size

2006-04-19 Thread Rob Wilkerson
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 ~~~

RE: Get String Byte Size

2006-04-19 Thread Ben Nadel
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

Re: Get String Byte Size

2006-04-19 Thread Rob Wilkerson
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

RE: Get String Byte Size

2006-04-19 Thread Andy Matthews
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

RE: Get String Byte Size

2006-04-19 Thread Ben Nadel
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

Re: Get String Byte Size

2006-04-19 Thread Nick de Voil
> 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

RE: Get String Byte Size

2006-04-19 Thread Ashwin Mathew
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

Re: Get String Byte Size

2006-04-20 Thread Rob Wilkerson
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 >

RE: Get String Byte Size

2006-04-20 Thread Bobby Hartsfield
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

RE: Get String Byte Size

2006-04-20 Thread Loathe
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

RE: Get String Byte Size

2006-04-20 Thread Andy Matthews
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

RE: Get String Byte Size

2006-04-20 Thread Bobby Hartsfield
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

RE: Get String Byte Size

2006-04-21 Thread Leon Oosterwijk
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