- /*verify there is an occurrence of the opt specified by the sender to change */
- /*take care of any multi-value opt names here. This is extremely kludgy, but test for functionality
- and worry about pretty later */
-
- /*First, we create a pattern to check for ":"optNameToChange"=" to modify the option if the name falls after
- the first character of the opt string (hence the ":") */
+ /* There are going to be a few possibilities.
+ - The option might start off the string.
+ - The option might be in the middle of the string.
+ - The option might not be in the string at all yet.
+ - The string itself might not yet exist.
+
+ Because each of these possibilities means constructing a different kind of string,
+ they're all handled separately in a sea of messy, somewhat redundant code. =( */
+
+ /* If the option is in the string but not the beginning of it, it will be in the form of ":optName=value"
+ so we really want to be looking for ":optNameToChange=" rather than "optNameToChange". */