Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
test-string.hpp
Go to the documentation of this file.
1 /* -*- c-basic-offset: 2; coding: utf-8 -*- */
2 /*
3  Copyright (C) 2011 Brazil
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License version 2.1 as published by the Free Software Foundation.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #ifndef GRN_DAT_TEST_STRING_HPP_
20 #define GRN_DAT_TEST_STRING_HPP_
21 
22 #include <dat/string.hpp>
23 
24 #include <iostream>
25 
26 namespace grn {
27 namespace dat {
28 
29 inline std::ostream &operator<<(std::ostream &stream,
30  const grn::dat::String &str) {
31  return stream.write(static_cast<const char *>(str.ptr()), str.length());
32 }
33 
34 } // namespace dat
35 } // namespace grn
36 
37 #endif // GRN_DAT_TEST_STRING_HPP_