yggm/libs/string.cuh
2025-03-14 22:52:59 +05:00

8 lines
386 B
Plaintext

#ifndef __STRING_CUH
#define __STRING_CUH
__device__ int cstring_length(const char* s);
__device__ int cstring_find(const char* s, const char* sub);
__device__ int cstring_to_ull(const char* s, unsigned* val);
__device__ void extract_substring(const char* src, int start, char* dest, int dest_size);
__device__ void concat(const char* s1, const char* s2, char* out, int outSize);
#endif