[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

CString to CStringA conversion and other questions :)

From: Oto BREZINA <otik_at_printflow.eu>
Date: Sun, 19 Aug 2012 16:19:25 +0200

Finally I have some spare time so I start with some work on T-Merge

1.
Do you know if "CStringA sLine = CStringA(sLineT)" is internally using
*WideCharToMultiByte*
<http://msdn.microsoft.com/en-us/library/windows/desktop/dd374130%28v=vs.85%29.aspx>?
What is for "CStringA(sLineT)" conversion here?

2.
I don't use STL much what is your preferred container for BYTE array,
according some webs candidates are:
CStringA - have count, operator [], copy on write, but may be
missleading of use
vector - have count and []
unique_ptr - have [], but lack count

3.
Thru code I have seen lot of *ptr++ based algos (sometimes in unnatural
way for me), are those quicker then based on ptr[]?
According some quite old optimalisation guide ptr[] could be faster
becouse of less increment instructions, and simpler cache management,
however it was in about '97.
Do you have any real performance tests/data - I tried to run my own, but
I was unable to start performance tests as I'm not admin ... will try
again later.

4.
I would like to write filters classes for ASCII, UTF8, UTF16BE, UTF16LE
and add UTF32s reads/writes. Do you have/know any preferred
interface/template for that job?

5.
Have you any specific reason to not support UTF32, or just too small use
cases.
Have you any reason to not support other EOLs? According
http://en.wikipedia.org/wiki/Newline only NEL seems be questionable.

-- 
Oto ot(ik) BREZINA - ??
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2999436
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-08-19 16:19:43 CEST

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.