Changes between Version 13 and Version 14 of Coding_Conventions


Ignore:
Timestamp:
Mar 1, 2012, 11:16:46 PM (12 years ago)
Author:
Philip Taylor
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Coding_Conventions

    v13 v14  
    178178 * Use `CStr` instead of `std::string`. Use `CStrW` instead of `std::wstring`. (These are subclasses of `std::[w]string` with various extra methods added for convenience.)
    179179  * ''Exception:'' `source/lib/` and `source/simulation2/` and `source/scriptinterface/` tend to prefer `std::[w]string` instead.
     180  * `CStr8` is an alias for `CStr`. Prefer to use `CStr`.
    180181
    181182 * Compare strings using `==` (not e.g. "`a.compare(b) == 0`"). Compare to literals directly (e.g. "`someCStrVariable == "foo"`", not "`someCStrVariable == CStr("foo")`").