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

RE: Get String Byte Size

2006-04-20 Thread Ashwin Mathew
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 the string to a file

Re: Get String Byte Size

2006-04-20 Thread Rob Wilkerson
[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 the string to a file first? I'm trying to do a little debugging and I'd like to know

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 code to

RE: Get String Byte Size

2006-04-20 Thread Loathe
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: Wednesday, April

RE: Get String Byte Size

2006-04-20 Thread Andy Matthews
] Sent: Thursday, April 20, 2006 9: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: Wednesday, April 19

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

Re: Get String Byte Size

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

RE: Get String Byte Size

2006-04-19 Thread Andy Matthews
developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- 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

RE: Get String Byte Size

2006-04-19 Thread Ben Nadel
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 String Byte Size I would think

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 memory