Skip to content

Commit

Permalink
Rename words.*pp -> word-range.*pp
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph-Edwards committed Dec 15, 2024
1 parent cf4f254 commit b6d0ea1
Show file tree
Hide file tree
Showing 34 changed files with 50 additions and 3,223 deletions.
4 changes: 2 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ pkginclude_HEADERS += include/libsemigroups/ukkonen.hpp
pkginclude_HEADERS += include/libsemigroups/ukkonen.tpp
pkginclude_HEADERS += include/libsemigroups/word-graph.hpp
pkginclude_HEADERS += include/libsemigroups/word-graph.tpp
pkginclude_HEADERS += include/libsemigroups/words.hpp
pkginclude_HEADERS += include/libsemigroups/word-range.hpp

detailincludedir = $(includedir)/libsemigroups/detail
detailinclude_HEADERS = include/libsemigroups/detail/bruidhinn-traits.hpp
Expand Down Expand Up @@ -656,7 +656,7 @@ libsemigroups_la_SOURCES += src/to-knuth-bendix.cpp
libsemigroups_la_SOURCES += src/to-todd-coxeter.cpp
libsemigroups_la_SOURCES += src/todd-coxeter.cpp
libsemigroups_la_SOURCES += src/ukkonen.cpp
libsemigroups_la_SOURCES += src/words.cpp
libsemigroups_la_SOURCES += src/word-range.cpp

libsemigroups_la_SOURCES += src/detail/felsch-tree.cpp
libsemigroups_la_SOURCES += src/detail/ke.cpp
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/bench-kambites.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "libsemigroups/kambites.hpp" // for Kambites
#include "libsemigroups/knuth-bendix.hpp" // for KnuthBendix
#include "libsemigroups/ranges.hpp" // for operator|, to_vector
#include "libsemigroups/words.hpp" // for StringRange
#include "libsemigroups/word-range.hpp" // for StringRange

namespace libsemigroups {
using detail::MultiStringView;
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/bench-siso.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#include "bench-main.hpp" // for LIBSEMIGROUPS_BENCHMARK
#include "catch.hpp" // for REQUIRE, REQUIRE_NOTHROW, REQUIRE_THROWS_AS

#include "libsemigroups/order.hpp" // for LexicographicalCompare
#include "libsemigroups/words.hpp" // for number_of_words
#include "libsemigroups/order.hpp" // for LexicographicalCompare
#include "libsemigroups/word-range.hpp" // for number_of_words

namespace libsemigroups {

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/bench-todd-coxeter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "libsemigroups/presentation.hpp"
#include "libsemigroups/todd-coxeter.hpp" // for ToddCoxeter, ToddCoxeter::...
#include "libsemigroups/types.hpp" // for word_type, letter_type
#include "libsemigroups/words.hpp" // for operator""_p
#include "libsemigroups/word-range.hpp" // for operator""_p

#include "libsemigroups/detail/report.hpp" // for ReportGuard
//
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/bench-wilo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#include "bench-main.hpp" // for LIBSEMIGROUPS_BENCHMARK
#include "catch.hpp" // for REQUIRE, REQUIRE_NOTHROW, REQUIRE_THROWS_AS

#include "libsemigroups/order.hpp" // for lexicographical_compare
#include "libsemigroups/words.hpp" // for number_of_words
#include "libsemigroups/order.hpp" // for lexicographical_compare
#include "libsemigroups/word-range.hpp" // for number_of_words

namespace libsemigroups {
namespace {
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/bench-wislo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#include "bench-main.hpp" // for LIBSEMIGROUPS_BENCHMARK
#include "catch.hpp" // for REQUIRE, REQUIRE_NOTHROW, REQUIRE_THROWS_AS

#include "libsemigroups/order.hpp" // for shortlex_compare
#include "libsemigroups/words.hpp" // for number_of_words
#include "libsemigroups/order.hpp" // for shortlex_compare
#include "libsemigroups/word-range.hpp" // for number_of_words

namespace libsemigroups {
namespace {
Expand Down
2 changes: 1 addition & 1 deletion include/libsemigroups/detail/ke.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include "libsemigroups/order.hpp" // for shortlex_compare
#include "libsemigroups/presentation.hpp" // for to_word
#include "libsemigroups/types.hpp" // for word_type, tril
#include "libsemigroups/words.hpp" // for ToWord, ToString
#include "libsemigroups/word-range.hpp" // for ToWord, ToString

namespace libsemigroups {
namespace detail {
Expand Down
2 changes: 1 addition & 1 deletion include/libsemigroups/detail/string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ namespace libsemigroups {

// Returns the string s to the power N, not optimized, complexity is O(N *
// |s|)
// TODO move to words.hpp and/or remove
// TODO move to word-range.hpp and/or remove
std::string power_string(std::string const& s, size_t N);

std::string group_digits(int64_t num);
Expand Down
2 changes: 1 addition & 1 deletion include/libsemigroups/knuth-bendix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
#include "to-presentation.hpp" // for to_presentation
#include "types.hpp" // for word_type
#include "word-graph.hpp" // for WordGraph
#include "words.hpp" // for to_strings
#include "word-range.hpp" // for to_strings

#include "detail/multi-string-view.hpp" // for MultiStringView
#include "detail/report.hpp" // for Reporter, REPORT_DEFAULT, REP...
Expand Down
2 changes: 1 addition & 1 deletion include/libsemigroups/libsemigroups.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@
#include "types.hpp"
#include "ukkonen.hpp"
#include "word-graph.hpp"
#include "words.hpp"
#include "word-range.hpp"

#endif // LIBSEMIGROUPS_LIBSEMIGROUPS_HPP_
2 changes: 1 addition & 1 deletion include/libsemigroups/paths.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include "ranges.hpp" // for is_input_range
#include "types.hpp" // for word_type
#include "word-graph.hpp" // for WordGraph
#include "words.hpp" // for number_of_words
#include "word-range.hpp" // for number_of_words

#include "detail/containers.hpp" // for DynamicArray2
#include "detail/path-iterators.hpp" // for default_postfix_increment
Expand Down
16 changes: 8 additions & 8 deletions include/libsemigroups/presentation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@
#include <utility> // for move, pair
#include <vector> // for vector, operator!=

#include "adapters.hpp" // for Hash, EqualTo
#include "constants.hpp" // for Max, UNDEFINED, operator==
#include "debug.hpp" // for LIBSEMIGROUPS_ASSERT
#include "order.hpp" // for ShortLexCompare
#include "ranges.hpp" // for seq, operator|, rx, take, chain, is_sorted
#include "types.hpp" // for word_type
#include "ukkonen.hpp" // for GreedyReduceHelper, Ukkonen
#include "words.hpp" // for operator+
#include "adapters.hpp" // for Hash, EqualTo
#include "constants.hpp" // for Max, UNDEFINED, operator==
#include "debug.hpp" // for LIBSEMIGROUPS_ASSERT
#include "order.hpp" // for ShortLexCompare
#include "ranges.hpp" // for seq, operator|, rx, take, chain, is_sorted
#include "types.hpp" // for word_type
#include "ukkonen.hpp" // for GreedyReduceHelper, Ukkonen
#include "word-range.hpp" // for operator+

#include "detail/fmt.hpp" // for format
#include "detail/string.hpp" // for maximum_common_prefix
Expand Down
Loading

0 comments on commit b6d0ea1

Please sign in to comment.