Changeset 174a11a for doc/theses/mike_brooks_MMath/string.tex
- Timestamp:
- Nov 6, 2024, 3:19:09 PM (7 days ago)
- Branches:
- master
- Children:
- e1107ec
- Parents:
- 5ba756c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/mike_brooks_MMath/string.tex
r5ba756c r174a11a 3 3 This chapter presents my work on designing and building a modern string type in \CFA. 4 4 The discussion starts with examples of interesting string problems, followed by examples of how these issues are solved in my design. 5 6 7 \section{String Comparison} 8 9 To prepare for the following discussion, a simple comparison among C, \CC, and \CFA basic string operation is presented. 10 \begin{cquote} 11 \begin{tabular}{@{}l|l|l@{}} 12 C @char [ ]@ & \CC @string@ & \CFA @string@ \\ 13 \hline 14 @strcpy@, @strncpy@ & @=@ & @=@ \\ 15 @strcat@, @strncat@ & @+@ & @+@ \\ 16 @strcmp@, @strncmp@ & @==@, @!=@, @<@, @<=@, @>@, @>=@ & @==@, @!=@, @<@, @<=@, @>@, @>=@ \\ 17 @strlen@ & @length@ & @size@ \\ 18 @[ ]@ & @[ ]@ & @[ ]@ \\ 19 & @substr@ & @substr@ \\ 20 & @replace@ & \\ 21 @strstr@ & @find@, @rfind@ & \\ 22 @strcspn@ & @find_first_of@, @find_last_of@ & \\ 23 @strspn@ & @find_first_not_of@, @find_last_not_of@ & \\ 24 & @c_str@ & \\ 25 \end{tabular} 26 \end{cquote} 27 Some more discussion ... 5 28 6 29
Note: See TracChangeset
for help on using the changeset viewer.