Changes between Version 13 and Version 14 of Coding_Conventions
- Timestamp:
- Mar 1, 2012, 11:16:46 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Coding_Conventions
v13 v14 178 178 * 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.) 179 179 * ''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`. 180 181 181 182 * Compare strings using `==` (not e.g. "`a.compare(b) == 0`"). Compare to literals directly (e.g. "`someCStrVariable == "foo"`", not "`someCStrVariable == CStr("foo")`").