Changes between Version 4 and Version 5 of Coding_Conventions


Ignore:
Timestamp:
Aug 12, 2009, 7:10:04 PM (15 years ago)
Author:
Philip Taylor
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Coding_Conventions

    v4 v5  
    7676}}}
    7777
    78  * Use `CStr` instead of `std::string`. Use `CStrW` instead of `std::wstring`.
    79 
    8078 * Use STL when appropriate.
    8179
    8280 * ...
     81
     82== Strings ==
     83
     84Use `CStr` instead of `std::string`. Use `CStrW` instead of `std::wstring`.
     85
     86For portability, use the following formats for printf-style functions:
     87{{{
     88printf("%s", "char string");
     89printf("%ls", L"wchar_t string");
     90wprintf(L"%hs", "char string");
     91wprintf(L"%ls", L"wchar_t string");
     92}}}
    8393
    8494= Old document =