4#include <system/string.h>
5#include <system/icloneable.h>
6#include <system/globalization/details/culture_data_ptr.h>
7#include <system/details/lazy.h>
8#include <system/details/spin_lock.h>
9#include <system/details/synchronized_value.h>
11namespace System {
namespace Globalization {
65 virtual ASPOSECPP_SHARED_API char_t
ToLower(char_t c)
const;
73 virtual ASPOSECPP_SHARED_API char_t
ToUpper(char_t c)
const;
98 using Lazy = System::Details::ThreadSafeLazy<T>;
100 template <
typename T>
101 using SynchronizedValue = System::Details::SynchronizedValue<T, System::Details::SpinLock>;
106 const bool m_is_read_only;
108 mutable Lazy<SynchronizedValue<String>> m_list_separator;
112 void VerifyWritable();
121 MEMBER_FUNCTION_MAKE_OBJECT(
TextInfo, CODEPORTING_ARGS(
const Details::CultureDataPtr& culture_data,
bool is_read_only =
false), CODEPORTING_ARGS(culture_data, is_read_only));
Collection of culture-specific values and algorithms. Setter operations are only enabled on non-read-...
Definition: culture_info.h:32
Defines locale-specific text properties. Setter operations are only enabled on non-read-only objects....
Definition: text_info.h:23
virtual int get_OEMCodePage() const
Gets OEM codepage.
virtual int get_EBCDICCodePage() const
Gets EBCDIC codepage.
virtual String ToUpper(String str) const
Converts string to upper case.
virtual int get_ANSICodePage() const
Gets ANSI codepage.
virtual char_t ToUpper(char_t c) const
Converts character to upper case.
virtual String get_ListSeparator() const
Gets list separator.
int get_LCID() const
Gets locale ID.
bool get_IsRightToLeft() const
Checks if text is written left to right.
TextInfo(const TextInfo &)=delete
RTTI information.
static TextInfoPtr ReadOnly(const TextInfoPtr &text_info)
Gets a read only version of culture.
bool Equals(SharedPtr< Object > obj) override
virtual char_t ToLower(char_t c) const
Converts character to lower case.
SharedPtr< Object > Clone() override
Creates a copy of the current object and returns a shared pointer to it.
virtual String ToLower(String str) const
Converts string to lower case.
String ToString() const override
Analog of C# Object.ToString() method. Enables converting custom objects to string.
virtual void set_ListSeparator(String value)
Sets list separator.
bool get_IsReadOnly() const
Checks if format is read-only.
virtual int get_MacCodePage() const
Gets Macintosh codepage.
String get_CultureName() const
Gets cluture name.
TextInfo & operator=(const TextInfo &)=delete
String ToTitleCase(String str) const
Converts string to title case (except for acronyms that are in upper case already).
int GetHashCode() const override
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects.
Defies a method that enables object cloning - creating a copy of an object. Objects of this class sho...
Definition: icloneable.h:16
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
std::shared_ptr< CultureData > CultureDataPtr
Pointer to hold implementation type.
Definition: culture_data_ptr.h:12
SharedPtr< TextInfo > TextInfoPtr
TextInfo pointer type.
Definition: text_info.h:15
Definition: db_command.h:9