Server IP : 172.67.216.182 / Your IP : 162.158.190.76 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/boost/boost_1_59_0/boost/algorithm/string/detail/ |
Upload File : |
// Boost string_algo library formatter_regex.hpp header file ---------------------------// // Copyright Pavol Droba 2002-2003. // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/ for updates, documentation, and revision history. #ifndef BOOST_STRING_FORMATTER_REGEX_DETAIL_HPP #define BOOST_STRING_FORMATTER_REGEX_DETAIL_HPP #include <boost/algorithm/string/config.hpp> #include <string> #include <boost/regex.hpp> #include <boost/algorithm/string/detail/finder_regex.hpp> namespace boost { namespace algorithm { namespace detail { // regex format functor -----------------------------------------// // regex format functor template<typename StringT> struct regex_formatF { private: typedef StringT result_type; typedef BOOST_STRING_TYPENAME StringT::value_type char_type; public: // Construction regex_formatF( const StringT& Fmt, match_flag_type Flags=format_default ) : m_Fmt(Fmt), m_Flags( Flags ) {} template<typename InputIteratorT> result_type operator()( const regex_search_result<InputIteratorT>& Replace ) const { if ( Replace.empty() ) { return result_type(); } else { return Replace.match_results().format( m_Fmt, m_Flags ); } } private: const StringT& m_Fmt; match_flag_type m_Flags; }; } // namespace detail } // namespace algorithm } // namespace boost #endif // BOOST_STRING_FORMATTER_DETAIL_HPP