]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/tools/quickbook/src/document_state.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / tools / quickbook / src / document_state.hpp
index 2210c417315c3cb9fb7b6ef9d13caf1f521d165f..6623d6e01b425e4bdd1cc047ddaa9fb139ad89f9 100644 (file)
@@ -10,7 +10,7 @@
 #define BOOST_QUICKBOOK_DOCUMENT_STATE_HPP
 
 #include <boost/scoped_ptr.hpp>
-#include <boost/utility/string_ref.hpp>
+#include "string_view.hpp"
 #include <string>
 #include "values.hpp"
 #include "syntax_highlight.hpp"
@@ -37,8 +37,8 @@ namespace quickbook
         };
 
         id_category() : c(default_category) {}
-        id_category(categories c) : c(c) {}
-        explicit id_category(int c) : c(categories(c)) {}
+        id_category(categories c_) : c(c_) {}
+        explicit id_category(int c_) : c(categories(c_)) {}
 
         bool operator==(id_category rhs) const { return c == rhs.c; }
 
@@ -54,31 +54,32 @@ namespace quickbook
 
         std::string start_file_with_docinfo(
                 unsigned compatibility_version,
-                boost::string_ref include_doc_id,
-                boost::string_ref id,
+                quickbook::string_view include_doc_id,
+                quickbook::string_view id,
                 value const& title);
 
         void start_file(
                 unsigned compatibility_version,
-                boost::string_ref include_doc_id,
-                boost::string_ref id,
+                quickbook::string_view include_doc_id,
+                quickbook::string_view id,
                 value const& title);
 
         void end_file();
 
-        std::string begin_section(boost::string_ref, id_category,
-            source_mode_info const&);
+        std::string begin_section(value const&,
+            quickbook::string_view, id_category, source_mode_info const&);
         void end_section();
         int section_level() const;
+        value const& explicit_id() const;
         source_mode_info section_source_mode() const;
 
-        std::string old_style_id(boost::string_ref, id_category);
-        std::string add_id(boost::string_ref, id_category);
-        std::string add_anchor(boost::string_ref, id_category);
+        std::string old_style_id(quickbook::string_view, id_category);
+        std::string add_id(quickbook::string_view, id_category);
+        std::string add_anchor(quickbook::string_view, id_category);
 
         std::string replace_placeholders_with_unresolved_ids(
-                boost::string_ref) const;
-        std::string replace_placeholders(boost::string_ref) const;
+                quickbook::string_view) const;
+        std::string replace_placeholders(quickbook::string_view) const;
 
         unsigned compatibility_version() const;
     private: