summaryrefslogtreecommitdiff
path: root/zap/source/any/mem/srch.c
AgeCommit message (Collapse)Author
2023-04-24Rename C++ cp to cpy; Rename C++ eq to equ; Rename C++ srch to srh; Rename C ↵0.0.0Gabriel Jensen
cp and C++ bytecp to memcpy; Rename C eq and C++ byteeq to memequ; Rename C fill and C++ bytefill to memfil; Add function for copying strings: strcpy; Add function for searching strings: strsrh; Rename cpyret.dest to cpyret.dst; Add new headers to makefile; Rename math to mth; Rename root to nrt; Rename unreach to urch; Make likly and ulikly public; Add extver to C++; Fix fixflt macros; Rename trap to trp; Add functions for UTF-16 encoding/decoding; Add C++ variants to UTF-8, UTF-16, and Windows-1252 functions; Move public C++ definitions to implementation files ('.ii); Make C++ string functions call their C equivalent at run-time; Add wide-string and UTF-32-string functions to C; Rename typeq to typequ; Use built-in type _Bool in C; Fix language-detection macros; Don't typedef cpyret; Fix C-implementation of cpy; Fix C-implementation of syscall; Define wchr as wchar_t in C++; Add minimum-width character types; Add minimum-width integral types; Update type codes; Remove type identifiers; Install implementation files; Fix non-existent source being referenced on ARM64; Use trailing return types; Fix isflttyp; Add more fixed-width floating-point types; Add more fixed-width integer types; Make ifconsteval public in the form of a compile-time function; Don't typedef pair; Add mathematical functions to C++; Add NaN constants; Add infinity constants to C; Add mathematical function for natural logarithm (unimplemented); Add mathematical function for binary logarithm (unimplemented); Add mathematical function for common logarithm (unimplemented); Add mathematical function for cube root (unimplemented); Add mathematical functions for distance (unimplemented); Add mathematical function for arc cosine (unimplemented); Add mathematical function for arc sine (unimplemented); Add mathematical function for arc tangens (unimplemented); Add mathematical function for logarithm (unimplemented)s Add mathematical functions for dot product; Add structures for vectors; Add classes for vector; Add mathematical function for fourth root (unimplemented); Assert arithmetic types in mathematical templates; Rename sign to sgn and usign to usgn; Add functions for adding vectors; Add functions for subtracting vectors; Implement 'any' architecture using C++; Add metaprogramming class for determening signed and unsigned types; Add UTF-8 encoders/decoders to C++; Add format to C++; Change type of fmtlen to sz; Remove attr prefix from attributes; Support shared libraries; Rename unuse to nuse; Remove sys and move members to bs; Add types for system call return values and system call identifier; Rename C srch and C++ bytesrch to memsrh; Restructure headers and implementations files; Add constant that defines the largest Unicode codepoint: unimax; Clean up code; Use binary literals; Rename is*typ to is*; Add functions for determening non-numbers; Add minimum-value and maximum-value constants to floating-point types; Define dos on DOS-like systems; Don't use file extensions for C++ headers; Update type codes; Change namespace to zp; Rename noret to nret; Rename project to zp (from zap); Add readme; Reset version epoch; Add logo; Add csys logo; Add null pointer type: nullptrtyp; Rename cmp to impl; Rename lang to std; Rename syscall to syscl; Add more comments to headers; Rename nullptr to nulptr; Add attribute for warning against unused results; Change type of ver and extver to i04m; Add type for storing the result of pointer subtraction: ptrdif; Rename ptr to intptr; Update gitignore; Rewrite test program;
2023-03-17Add integer-string format functions; Move string-related facilities to new ↵Gabriel Jensen
module 'str'; Update code style; Add aliases for C++; Add C++ metaprogramming classes; Fix C/C++ standard detections; Add more attributes to functions; Implement mathematical functions in C++; Implement mathematical functions using basic arithmetic types, including (depending on the function) signed, unsigned, and floating-point; Add fraction structure;
2023-02-26Add functions for null-terminated strings: streq (for equality checking), ↵Gabriel Jensen
strlen (for getting the length); Add type limit macros; Rename bytesz to bytelen; Remove byte type; Remove bool type (and related macros); Remove chr8, chr01, and chr02 types; Update nullptr definition; Update nopos definition;
2023-01-22Rewrite project (the following is the current feature set); Add ↵Gabriel Jensen
minimum-width unsigned integer types: i8, i01, i02, i04; Add minimum-width signed integer types: i8s, i01s, i02s, i04s; Add type for object sizes: sz; Add type for pointer values: ptr; Add function for logical values: bool; Add logical constants: false, true; Add function for memory sequence copying: cp; Add function for memory sequence filling: fill; Add types for storing quotients and remainders: quotrem8, quotrem01, quotrem02, quotrem04; Add function for division and modulo: divmod; Add function for getting absolute values: abs; Add function for memory sequence comparison: eq; Add function for radication: root (unimplemented); Add function for exponentiation: exp (unimplemented); Add function for bytes value searching: srch: Add constant for indicating invalid positions: nopos; Add constant for indicating null pointers: nullptr; Add types for UTF-8, UTF-16,a and UTF-32 values: chr8, chr01, chr02; Add function for UTF-8 encoding: utf8enc; Add function for UTF-8 decoding: utf8dec; Add function for UTF-32 to UTF-8 length calculations: utf8enclen; Add function for UTF-8 to UTF-32 length calculations: utf8declen; Add function for Windows-1252 encoding: win1252enc; Add function for Windows-1252 decoding: win1252dec; Add function for logarithming: log (unimplemented);