CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
string_concat.h
1
2
3#pragma once
4
5#include <system/string.h>
6#include <cstdint>
7
8
10namespace System
11{
12namespace Collections
13{
14namespace Generic
15{
16template <typename> class List;
17} // namespace Generic
18} // namespace Collections
19namespace Xml
20{
21class XmlEventCache;
22} // namespace Xml
23} // namespace System
25
26namespace System {
27
28namespace Xml {
29
30namespace Xsl {
31
32namespace Runtime {
33
35class ASPOSECPP_SHARED_CLASS StringConcat : public System::Object
36{
37 typedef StringConcat ThisType;
39
40 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
41 ASPOSECPP_SHARED_RTTI_INFO_DECL();
42
44 friend class System::Xml::XmlEventCache;
46
47public:
48
51 ASPOSECPP_SHARED_API String get_Delimiter();
54 ASPOSECPP_SHARED_API void set_Delimiter(const String& value);
55
57 ASPOSECPP_SHARED_API void Clear();
60 ASPOSECPP_SHARED_API void Concat(const String& value);
63 ASPOSECPP_SHARED_API String GetResult();
64
66 ASPOSECPP_SHARED_API StringConcat();
67
68protected:
69
71 int32_t get_Count();
72
73 void ConcatNoDelimiter(const String& s);
74
75 #ifdef ASPOSE_GET_SHARED_MEMBERS
76 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
77 #endif
79
80private:
81
82 String _s1, _s2, _s3, _s4;
83 String _delimiter;
85 int32_t _idxStr;
86
87};
88
89} // namespace Runtime
90} // namespace Xsl
91} // namespace Xml
92} // namespace System
93
94
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Concatenates strings when the number of strings is not known beforehand.
Definition: string_concat.h:36
void Concat(const String &value)
Concatenates a new string to the result.
void Clear()
Clears the result string.
String GetResult()
Returns the result string.
String get_Delimiter()
Returns the string that delimits concatenated strings.
void set_Delimiter(const String &value)
Sets the string that delimits concatenated strings.
class ASPOSECPP_SHARED_CLASS List
Definition: ienumerable.h:18
@ Xml
Serialize according to the XML 1.0 rules.
Definition: db_command.h:9