Design Pattern Examples
Overview of object-oriented design patterns
helpers/replace.h
Go to the documentation of this file.
1
5
6#pragma once
7#ifndef __REPLACE_H__
8#define __REPLACE_H__
9
19void replace_chr(char* s, char c1, char c2);
20
30void replace_chri(char* s, char c1, char c2);
31
42char* replace_str(const char* s, const char* str1, const char* str2);
43
54char* replace_stri(const char* s, const char* str1, const char* str2);
55
56#endif // __REPLACE_H__
57
void replace_chri(char *s, char c1, char c2)
Replace all occurrences of narrow character c1 with narrow character c2 in s, using case-insensitive ...
Definition: replace.c:51
char * replace_str(const char *s, const char *str1, const char *str2)
Replace all occurrences of narrow string str1 with narrow string str2 in s, using case-sensitive sear...
Definition: replace.c:127
char * replace_stri(const char *s, const char *str1, const char *str2)
Replace all occurrences of narrow string str1 with narrow string str2 in s, using case-insensitive se...
Definition: replace.c:163
void replace_chr(char *s, char c1, char c2)
Replace all occurrences of narrow character c1 with narrow character c2 in s, using case-sensitive se...
Definition: replace.c:17