Skip to content

Commit 2f1f3a3

Browse files
committed
(#43) Document the changes
1 parent f00023e commit 2f1f3a3

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1212

1313
## [Unreleased] (1.3.0)
1414
### Added
15+
- `IPath::IsPrefixOf` to check path prefixes.
16+
- `IPath::StartsWith` to check if the current path starts with a specified path.
1517
- [#38: Introduce `AbsolutePath::CurrentWorkingDirectory`](https://github.com/ForNeVeR/TruePath/issues/38).
1618

1719
### Changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,20 +76,16 @@ Aside from the strict types, the following features are supported for the paths:
7676
- `IPath::FileName` returns the last component of the path;
7777
- `IPath::Parent` returns the parent path item (`null` for the root path or top-level relative path);
7878
- `IPath<T>` supports operators to join it with `LocalPath` or a `string` (note that in both cases appending an absolute path to path of another kind will take over: the last absolute path in chain will win and destroy all the previous ones; this is the standard behavior of path-combining methods — use `AbsolutePath` in combination with `RelativePath` if you want to avoid this behavior);
79+
- `IPath::IsPrefixOf` to check path prefixes;
80+
- `IPath::StartsWith` to check if the current path starts with a specified path;
7981
- `LocalPath::IsAbsolute` to check the path kind (since it supports both kinds);
80-
- `LocalPath::IsPrefixOf` to check path prefixes;
8182
- `LocalPath::RelativeTo` to get a relative part between two paths, if possible;
8283
- extension methods on `IPath`:
8384
- `GetExtensionWithDot` and `GetExtensionWithoutDot` to get the file extension with or without the leading dot (note that `GetExtensionWithDot` will behave differently for paths ending with dots and paths without dot at all);
8485
- `GetFileNameWithoutExtension` to get the file name without the extension (and without the trailing dot, if any)
8586

8687
(Note how `GetFileNameWithoutExtension()` works nicely together with `GetExtensionWithDot()` to reconstruct the resulting path from their concatenation, however weird the initial name was — no extension, trailing dot, no base name.)
8788

88-
### Unreleased
89-
90-
- `IPath::IsPrefixOf` to check path prefixes.
91-
- `IPath::StartsWith` to check if the current path starts with a specified path.
92-
9389
Documentation
9490
-------------
9591
- [Contributor Guide][docs.contributing]

0 commit comments

Comments
 (0)