Changeset 174a11a for doc/theses


Ignore:
Timestamp:
Nov 6, 2024, 3:19:09 PM (7 days ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
e1107ec
Parents:
5ba756c
Message:

add starting section 5.1 for strings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/mike_brooks_MMath/string.tex

    r5ba756c r174a11a  
    33This chapter presents my work on designing and building a modern string type in \CFA.
    44The 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
     9To 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@{}}
     12C @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}
     27Some more discussion ...
    528
    629
Note: See TracChangeset for help on using the changeset viewer.