diff options
| author | Tyge Lovset <[email protected]> | 2022-05-30 00:59:14 +0200 |
|---|---|---|
| committer | Tyge Lovset <[email protected]> | 2022-05-30 00:59:14 +0200 |
| commit | 831dc0843aeedcb45138a6ed576ea03f2dcd58f8 (patch) | |
| tree | 12fedc72d39abda4bb50e59471dddca88b675f86 /examples | |
| parent | 6e96a8f11783d9c8956ddf272739f005c7b17c16 (diff) | |
| download | STC-modified-831dc0843aeedcb45138a6ed576ea03f2dcd58f8.tar.gz STC-modified-831dc0843aeedcb45138a6ed576ea03f2dcd58f8.zip | |
Added more utf8 features. Changed linking macros in ccommon.h.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/arc_containers.c | 1 | ||||
| -rw-r--r-- | examples/books.c | 1 | ||||
| -rw-r--r-- | examples/hashmap.c | 1 | ||||
| -rw-r--r-- | examples/mapmap.c | 1 | ||||
| -rw-r--r-- | examples/mmap.c | 1 | ||||
| -rw-r--r-- | examples/rawptr_elements.c | 1 | ||||
| -rw-r--r-- | examples/regex1.c | 1 | ||||
| -rw-r--r-- | examples/regex2.c | 1 | ||||
| -rw-r--r-- | examples/regex_match.c | 3 | ||||
| -rw-r--r-- | examples/splitstr.c | 1 | ||||
| -rw-r--r-- | examples/unordered_set.c | 1 |
11 files changed, 13 insertions, 0 deletions
diff --git a/examples/arc_containers.c b/examples/arc_containers.c index f9c14123..0ee2cbeb 100644 --- a/examples/arc_containers.c +++ b/examples/arc_containers.c @@ -1,5 +1,6 @@ // Create a stack and a list of shared pointers to maps,
// and demonstrate sharing and cloning of maps.
+#include <stc/cstr.h>
#define i_type Map
#define i_key_str // strings
#define i_val int
diff --git a/examples/books.c b/examples/books.c index b891388d..eb644ba7 100644 --- a/examples/books.c +++ b/examples/books.c @@ -1,5 +1,6 @@ // https://doc.rust-lang.org/std/collections/struct.HashMap.html
+#include <stc/cstr.h>
#define i_key_str
#define i_val_str
#include <stc/cmap.h>
diff --git a/examples/hashmap.c b/examples/hashmap.c index f39a3904..9ff019e6 100644 --- a/examples/hashmap.c +++ b/examples/hashmap.c @@ -1,5 +1,6 @@ // https://doc.rust-lang.org/rust-by-example/std/hash.html
+#include <stc/cstr.h>
#define i_key_str
#define i_val_str
#include <stdio.h>
diff --git a/examples/mapmap.c b/examples/mapmap.c index 51a5ce59..ccf09314 100644 --- a/examples/mapmap.c +++ b/examples/mapmap.c @@ -1,5 +1,6 @@ // unordered_map<string, unordered_map<string, string>>:
+#include <stc/cstr.h>
#define i_type People
#define i_key_str
#define i_val_str
diff --git a/examples/mmap.c b/examples/mmap.c index f8e56dc3..16b5d2df 100644 --- a/examples/mmap.c +++ b/examples/mmap.c @@ -2,6 +2,7 @@ // https://en.cppreference.com/w/cpp/container/multimap/insert
// Multimap entries
+#include <stc/cstr.h>
#define i_val_str
#include <stc/clist.h>
diff --git a/examples/rawptr_elements.c b/examples/rawptr_elements.c index f31f9abd..c438727b 100644 --- a/examples/rawptr_elements.c +++ b/examples/rawptr_elements.c @@ -13,6 +13,7 @@ struct { double x, y; } typedef Point; #define i_tag pnt
#include <stc/cset.h>
+#include <stc/cstr.h>
// Map of int64 pointers: Define i_valraw as int64_t for easy emplace calls!
typedef int64_t inttype;
#define i_key_str
diff --git a/examples/regex1.c b/examples/regex1.c index 23a28f08..48dfe515 100644 --- a/examples/regex1.c +++ b/examples/regex1.c @@ -30,3 +30,4 @@ int main(int argc, char* argv[]) } #include "../src/cregex.c" +#include "../src/casefold.c" diff --git a/examples/regex2.c b/examples/regex2.c index 750638c4..60fd707a 100644 --- a/examples/regex2.c +++ b/examples/regex2.c @@ -33,3 +33,4 @@ int main() } #include "../src/cregex.c" +#include "../src/casefold.c" diff --git a/examples/regex_match.c b/examples/regex_match.c index 3747b319..5d2ff215 100644 --- a/examples/regex_match.c +++ b/examples/regex_match.c @@ -1,4 +1,6 @@ #include <stdio.h> +#define i_implement +#include <stc/cstr.h> #include <stc/cregex.h> #include <stc/crandom.h> #include <stc/csview.h> @@ -33,3 +35,4 @@ int main() } #include "../src/cregex.c" +#include "../src/casefold.c" diff --git a/examples/splitstr.c b/examples/splitstr.c index d0aefa85..390a6c6f 100644 --- a/examples/splitstr.c +++ b/examples/splitstr.c @@ -1,3 +1,4 @@ +#include <stc/cstr.h>
#define i_val_str
#include <stc/cvec.h>
#include <stc/csview.h>
diff --git a/examples/unordered_set.c b/examples/unordered_set.c index 2decb88c..11ffea80 100644 --- a/examples/unordered_set.c +++ b/examples/unordered_set.c @@ -1,5 +1,6 @@ // https://iq.opengenus.org/containers-cpp-stl/
// C program to demonstrate various function of stc cset
+#include <stc/cstr.h>
#define i_key_str
#include <stc/cset.h>
|
