| 449 | } |
| 450 | |
| 451 | HOSTDEVICE static inline char *PD_PString_Resize(PD_PString *str, |
| 452 | size_t new_size, |
| 453 | char c) { |
| 454 | size_t curr_size = PD_PString_GetSize(str); |
| 455 | char *cstr = PD_PString_ResizeUninitialized(str, new_size); |
| 456 | |
| 457 | if (new_size > curr_size) { |
| 458 | PD_Memset(cstr + curr_size, c, new_size - curr_size); |
| 459 | } |
| 460 | |
| 461 | return cstr; |
| 462 | } |
| 463 | |
| 464 | HOSTDEVICE static inline void PD_PString_AssignView(PD_PString *dst, |
| 465 | const char *src, |
no test coverage detected