Home » U++ Library support » U++ Core » A way to change what
represents
A way to change what
represents [message #16294] |
Fri, 06 June 2008 15:00 |
cbpporter
Messages: 1401 Registered: September 2007
|
Ultimate Contributor |
|
|
Is there a way to change what characters are inserted when using "\n" (i.e. like when writing to a stream)? OS dependent value is not good for my current need, I need fixed one.
If there isn't I guess I can run a in-memory replace before writing to disk, but the operation is sure to be expensive.
|
|
|
|
|
Re: A way to change what
represents [message #16307 is a reply to message #16294] |
Sat, 07 June 2008 10:46 |
|
mirek
Messages: 13980 Registered: November 2005
|
Ultimate Member |
|
|
cbpporter wrote on Fri, 06 June 2008 09:00 | Is there a way to change what characters are inserted when using "\n" (i.e. like when writing to a stream)? OS dependent value is not good for my current need, I need fixed one.
If there isn't I guess I can run a in-memory replace before writing to disk, but the operation is sure to be expensive.
|
Actually, current U++ NEVER tests for '\n' in output stream (with exception of Cout()).
The reason is that such test has very negative impact on Stream performance and it seems to be not very difficult to manage this in client code.
Mirek
[Updated on: Sat, 07 June 2008 10:46] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Tue May 21 15:59:02 CEST 2024
Total time taken to generate the page: 0.02373 seconds
|