[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 41274a8 14/33: Improve documentation
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 41274a8 14/33: Improve documentation |
Date: |
Mon, 3 May 2021 08:15:52 -0400 (EDT) |
branch: master
commit 41274a837532264a0a090e159518c0a8e5a259b7
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Improve documentation
This change in [squashed] commit e0362c7971676:
-/// fs::change_extension() uses the present argument order:
-/// function(original, new_part)
+/// fs::path::replace_extension() uses the present argument order:
+/// original.replace_extension(new_part)
lost the meaning of the original--i.e., lmi function modify_directory()
takes two arguments in a particular order, and change_extension() in
the boost original took two corresponding arguments in the same order.
Because the standard replace_extension() takes only one argument, there
is no parallel to be drawn.
---
path_utility.cpp | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/path_utility.cpp b/path_utility.cpp
index d68b0b2..0228f4c 100644
--- a/path_utility.cpp
+++ b/path_utility.cpp
@@ -46,11 +46,10 @@
/// modify_directory("sh", "/usr/bin") // present order
/// modify_directory("/usr/bin", "sh") // opposite order
/// because the path precedes the filename in canonical form. However,
-/// fs::path::replace_extension() uses the present argument order:
-/// original.replace_extension(new_part)
-/// and in a nondegenerate case such as:
+/// consider a nondegenerate case--this:
/// modify_directory("/bin/sh", "/usr/bin") // present order
-/// simply means "change the directory of /bin/sh to /usr/bin", while
+/// naturally means "change the directory of /bin/sh to /usr/bin"
+/// (yielding "/usr/bin/sh"), whereas this:
/// modify_directory("/usr/bin", "/bin/sh") // opposite order
/// seems less natural.
///
- [lmi-commits] [lmi] master bb267b7 18/33: Reinstate some recently-removed documentation, (continued)
- [lmi-commits] [lmi] master bb267b7 18/33: Reinstate some recently-removed documentation, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 6d7a545 26/33: Reinsert a required empty line, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master ea4515f 04/33: Further deboostify, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 4faab10 01/33: Adjust whitespace for microconcinnity, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master f4f4756 05/33: Resolve a marked defect [283], Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master c98c00d 10/33: Say "basename" rather than "leaf", Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 1a68606 23/33: Conserve 80-character maximum width, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master e33e392 22/33: Correct and reformat the modify_directory() documentation, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master fd44389 03/33: Include appropriate headers, and say why they're included, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master fdc0f5a 07/33: Deboostify even more, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 41274a8 14/33: Improve documentation,
Greg Chicares <=
- [lmi-commits] [lmi] master e4d2f31 08/33: Rename a function, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 2038991 15/33: Improve concinnity, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 9235f33 16/33: Avoid implicit conversion to fs::path, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 4ab2c4e 20/33: Further improve modify_directory() documentation, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master b64436f 19/33: Improve modify_directory() documentation and tests, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 0e3d61a 21/33: Rework modify_directory() documentation; augment unit test, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 40096c3 24/33: Conserve 70-character comment width, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 4473403 29/33: Improve output spacing, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master bc805ad 28/33: Augment path-validation unit test, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 6fd9f69 32/33: Remove the last occurrence of /name.check/, Greg Chicares, 2021/05/03