diff options
| author | Tyge Løvset <[email protected]> | 2022-12-20 12:36:15 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-12-20 12:36:15 +0100 |
| commit | 1763be8c8cbbc0896477fcf924edd4180d1345a9 (patch) | |
| tree | 01a3e6d71ac54aa8bb87f7b9311ae843692baff4 /README.md | |
| parent | 1778629d92849af84239c4b8c1940ed76fd87b8a (diff) | |
| download | STC-modified-1763be8c8cbbc0896477fcf924edd4180d1345a9.tar.gz STC-modified-1763be8c8cbbc0896477fcf924edd4180d1345a9.zip | |
Minor docs changes.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 20 |
1 files changed, 1 insertions, 19 deletions
@@ -520,7 +520,7 @@ Memory efficiency - Renamed: type **csptr** to [**carc**](docs/carc_api.md) (atomic reference counted) smart pointer. - Renamed: ***i_key_csptr*** / ***i_val_csptr*** to `i_keyboxed` / `i_valboxed` for specifying **carc** and **cbox** values in containers. - Renamed: *csptr_X_make()* to `carc_X_from()`. -- Renamed: *cstr_lit()* to `cstr_lit(literal)`, and *cstr_assign_fmt()* to `cstr_printf()`. +- Renamed: *cstr_new()* to `cstr_lit(literal)`, and *cstr_assign_fmt()* to `cstr_printf()`. - Renamed: *c_default_fromraw()* to `c_default_from()`. - Changed: the [**c_apply**](docs/ccommon_api.md) macros API. - Replaced: *csview_first_token()* and *csview_next_token()* with one function: `csview_token()`. @@ -529,21 +529,3 @@ Memory efficiency - Added: `i_opt` template parameter: compile-time options: `c_no_cmp`, `c_no_clone`, `c_no_atomic`, `c_is_forward`; may be combined with `|` - Added: [**cbox**](docs/cbox_api.md) type: smart pointer, similar to [Rust Box](https://doc.rust-lang.org/rust-by-example/std/box.html) and [std::unique_ptr](https://en.cppreference.com/w/cpp/memory/unique_ptr). - Added: [**c_forpair**](docs/ccommon_api.md) macro: for-loop with "structured binding" - -## Migration guide from version 2 to 3 -Replace (regular expression) globally in code base (VS Code): -- `_del\b` ⟶ `_drop` -- `_compare\b` ⟶ `_cmp` -- `_rawvalue\b` ⟶ `_raw` -- `_equ\b` ⟶ `_eq` - -Replace (whole word + match case): -- `i_keydel` ⟶ `i_keydrop` -- `i_valdel` ⟶ `i_valdrop` -- `i_cnt` ⟶ `i_type` -- `cstr_lit` ⟶ `cstr_lit` -- `i_key_sptr` ⟶ `i_keyboxed` -- `i_val_sptr` ⟶ `i_valboxed` - -Non-regex, global match case replace: -- `csptr` ⟶ `carc` |
