summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cregex.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-01-31 18:55:08 +0100
committerTyge Løvset <[email protected]>2023-01-31 18:55:08 +0100
commitb677a0c3950b8294ba6458e682a885351273ac08 (patch)
treef309f7f7571fb588f0f65254d17fa09d678a8e3c /include/stc/cregex.h
parenta24ecd6bbfffc2e0b75b8ed48fcb5306d367ad3e (diff)
downloadSTC-modified-b677a0c3950b8294ba6458e682a885351273ac08.tar.gz
STC-modified-b677a0c3950b8294ba6458e682a885351273ac08.zip
Converted all containers but the maps and examples to signed sizes and indices.
Diffstat (limited to 'include/stc/cregex.h')
-rw-r--r--include/stc/cregex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/cregex.h b/include/stc/cregex.h
index 206c319d..c41fbb67 100644
--- a/include/stc/cregex.h
+++ b/include/stc/cregex.h
@@ -143,7 +143,7 @@ cstr cregex_replace_sv_6(const cregex* re, csview input, const char* replace, un
#define cregex_replace_3(re, input, replace) cregex_replace_4(re, input, replace, ~0U)
STC_INLINE cstr cregex_replace_4(const cregex* re, const char* input, const char* replace, unsigned count) {
- csview sv = {input, strlen(input)};
+ csview sv = {input, c_strlen(input)};
return cregex_replace_sv_4(re, sv, replace, count);
}