Skip to content

Commit 193f4e3

Browse files
committed
v1.0.0
1 parent ded092e commit 193f4e3

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set(CMAKE_CXX_STANDARD 14 CACHE STRING "Must be at least 14")
44
option(CMAKE_CXX_EXTENSIONS "C++ language extensions" OFF)
55

66
project(LB/utf
7-
VERSION 0.0.0
7+
VERSION 1.0.0
88
LANGUAGES CXX
99
)
1010
set(CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}/${PROJECT_VERSION}")

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Since this is a header-only library, the build step is only really for building
9797
#### Installation and Linking
9898
First, use CMake's install step to install the project (e.g. `cmake --build . --target install`).
9999
From the `cmake` directory, copy the `FindLB` directory to a place in your [`CMAKE_MODULE_PATH`](https://cmake.org/cmake/help/latest/variable/CMAKE_MODULE_PATH.html).
100-
Then, add `find_package(LB/utf REQUIRED)` to your CMake script.
100+
Then, add `find_package(LB/utf 1 EXACT REQUIRED)` to your CMake script.
101101
You may need to set the CMake variable `LB/utf_ROOT` if you installed to a nonstandard location.
102102
Finally, link to the `LB::utf` imported target with [`target_link_libraries()`](https://cmake.org/cmake/help/latest/command/target_link_libraries.html).
103103

@@ -131,6 +131,8 @@ noexcept(noexcept(num_code_units(it, last)) && noexcept(it == last) && noexcept(
131131
The operations `cp` must support are those shown in the `noexcept` specification.
132132
If the sequence is invalid, the function returns the original value of `it` and `0`, and the value of `cp` is undefined.
133133

134+
See `example/num_code_points.cpp` for example usage.
135+
134136
#### `min_code_units`
135137
Calculates the minimum number of code units required to store a code point.
136138
```cpp
@@ -153,3 +155,5 @@ auto encode_code_point(code_point_t cp)
153155
`code_unit_t` must be an integral type.
154156
`code_point_t` must be an unsigned integral type, or and unsigned-integer-like type that must support , `operator==(unsigned)`, `operator>>=(std::size_t)`, `operator&(unsigned)`, must be convertible to `code_unit_t`, and must be able to be passed to `min_code_units`.
155157
This function does not have any `noexcept` specification because `std::basic_string` does not - the memory allocation could throw an exception.
158+
159+
See `example/encode_all.cpp` for example usage.

0 commit comments

Comments
 (0)