1 ///////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2000-2014 Ericsson Telecom AB
3 // All rights reserved. This program and the accompanying materials
4 // are made available under the terms of the Eclipse Public License v1.0
5 // which accompanies this distribution, and is available at
6 // http://www.eclipse.org/legal/epl-v10.html
7 ///////////////////////////////////////////////////////////////////////////////
12 void flatten(CHARSTRING
& par
) {
13 CHARSTRING
retval(0, ""); // empty string
14 const int max
= par
.lengthof();
15 for (int i
= 0; i
< max
; ++i
) {
16 char c
= par
[i
].get_char();
26 void flatten(UNIVERSAL_CHARSTRING
& par
) {
28 const int max
= par
.lengthof();
29 for (int i
= 0; i
< max
; ++i
) {
30 universal_char uc
= par
[i
].get_uchar();
33 if ( !uc
.uc_group
&& !uc
.uc_plane
&& !uc
.uc_row
&& isprint(uc
.uc_cell
)) {
34 buf
.put_s(4, (const unsigned char*)&uc
);
41 namespace Txerasntypes
{
42 void flatten(CHARSTRING
& par
)
44 void flatten(UNIVERSAL_CHARSTRING
& par
)
48 namespace Txerboolean
{
49 void flatten(CHARSTRING
& par
)
51 void flatten(UNIVERSAL_CHARSTRING
& par
)
56 void flatten(CHARSTRING
& par
)
58 void flatten(UNIVERSAL_CHARSTRING
& par
)
62 namespace Txerstring
{
63 void flatten(CHARSTRING
& par
)
65 void flatten(UNIVERSAL_CHARSTRING
& par
)
70 void flatten(CHARSTRING
& par
)
72 void flatten(UNIVERSAL_CHARSTRING
& par
)
77 void flatten(CHARSTRING
& par
)
79 void flatten(UNIVERSAL_CHARSTRING
& par
)
83 namespace Txernested
{
84 void flatten(CHARSTRING
& par
)
86 void flatten(UNIVERSAL_CHARSTRING
& par
)
91 void flatten(CHARSTRING
& par
)
93 void flatten(UNIVERSAL_CHARSTRING
& par
)
97 namespace Txerobjclass
{
98 void flatten(CHARSTRING
& par
)
100 void flatten(UNIVERSAL_CHARSTRING
& par
)
This page took 0.041739 seconds and 5 git commands to generate.