libzypp
11.13.5
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
LocaleSupport.cc
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| ____ _ __ __ ___ |
3
| |__ / \ / / . \ . \ |
4
| / / \ V /| _/ _/ |
5
| / /__ | | | | | | |
6
| /_____||_| |_| |_| |
7
| |
8
\---------------------------------------------------------------------*/
12
#include <iostream>
13
#include "
zypp/base/LogTools.h
"
14
15
#include "
zypp/sat/LocaleSupport.h
"
16
17
using
std::endl;
18
20
namespace
zypp
21
{
22
23
namespace
sat
24
{
25
26
/******************************************************************
27
**
28
** FUNCTION NAME : operator<<
29
** FUNCTION TYPE : std::ostream &
30
*/
31
std::ostream &
operator<<
( std::ostream & str,
const
LocaleSupport
& obj )
32
{
33
return
str << obj.
locale
() <<
'('
<< (obj.
isAvailable
()?
'a'
:
'_'
) << (obj.
isRequested
()?
'R'
:
'_'
) <<
')'
;
34
}
35
36
/******************************************************************
37
**
38
** FUNCTION NAME : dumpOn
39
** FUNCTION TYPE : std::ostream &
40
*/
41
std::ostream &
dumpOn
( std::ostream & str,
const
LocaleSupport
& obj )
42
{
43
return
dumpRange
( str << obj, obj.
begin
(), obj.
end
() );
44
}
45
47
}
// namespace sat
50
}
// namespace zypp
zypp
sat
LocaleSupport.cc
Generated by
1.8.1