| 1 | = Parrot Deprecations for 3.0 = |
| 2 | |
| 3 | == PIR string literals with charset and encoding are deprecated == |
| 4 | |
| 5 | === Description === |
| 6 | |
| 7 | PIR string literals of the form |
| 8 | |
| 9 | {{{ |
| 10 | encoding:charset:"string" |
| 11 | }}} |
| 12 | |
| 13 | are deprecated. |
| 14 | |
| 15 | === Rationale === |
| 16 | |
| 17 | After the charset/encoding merge, they're unneeded. |
| 18 | |
| 19 | === Replacement === |
| 20 | |
| 21 | They can be replaced with |
| 22 | |
| 23 | {{{ |
| 24 | encoding:"string" |
| 25 | }}} |
| 26 | |
| 27 | The encoding should be one of the new unified encodings. |
| 28 | |
| 29 | == Remaining string_* functions are deprecated == |
| 30 | |
| 31 | === Description === |
| 32 | |
| 33 | The string_* functions have been deprecated for a while. The remaining functions are: |
| 34 | |
| 35 | {{{ |
| 36 | string_make |
| 37 | string_ord |
| 38 | string_chr |
| 39 | string_to_cstring_nullable |
| 40 | string_max_bytes |
| 41 | string_increment |
| 42 | }}} |
| 43 | |
| 44 | === Rationale === |
| 45 | |
| 46 | They're old cruft. |
| 47 | |
| 48 | === Replacement === |
| 49 | |
| 50 | string_make should be replaced with Parrot_str_new_init. You can use Parrot_find_encoding to get an encoding from a cstring. |
| 51 | |
| 52 | Replace string_ord with Parrot_str_indexed. |
| 53 | |
| 54 | Replace string_chr with Parrot_str_chr. |
| 55 | |
| 56 | Replace string_to_cstring_nullable with Parrot_str_to_cstring. |
| 57 | |
| 58 | string_max_bytes and string_increment will be removed. |