xtd 0.2.0
xtd.core

Definition

The xtd.core library contains all fundamental classes to access Hardware, Os, System, and more.

Collaboration diagram for xtd.core:

Classes

class  xtd::abstract_object
 Represent an abstract class. More...
 
class  xtd::access_violation_exception
 The exception that is thrown when a method call is invalid for the object's current state. More...
 
class  xtd::argument_exception
 The exception that is thrown when one of the arguments provided to a method is not valid. More...
 
class  xtd::argument_null_exception
 The exception that is thrown when one of the arguments provided to a method is null. More...
 
class  xtd::argument_out_of_range_exception
 The exception that is thrown when one of the arguments provided to a method is out of range. More...
 
class  xtd::arithmetic_exception
 The exception that is thrown for errors in an arithmetic, casting, or conversion operation. More...
 
class  xtd::attribute
 Represents the base class for custom attributes. More...
 
class  xtd::background_color
 Represent background color output manipulator class. More...
 
class  xtd::beep
 Represent beep output manipulator class. More...
 
class  xtd::bit_converter
 Converts base data types to an std::vector of bytes, and an std::vector of bytes to base data types. More...
 
class  xtd::box< type_t >
 Represents a boxed object. More...
 
class  xtd::box_char< type_t >
 Represents a boxed char object. More...
 
class  xtd::box_floating_point< type_t >
 Represents a boxed floating point object. More...
 
class  xtd::box_integer< type_t >
 Represents a boxed integer object. More...
 
class  xtd::collections::key_not_found_exception
 The exception that is thrown when the key specified for accessing an element in a collection does not match any key in the collection. More...
 
class  xtd::compiler
 Represents information about c++ libraries, such as the version and standard identifier. This class cannot be inherited. More...
 
class  xtd::console
 Represents the standard input, output, and error streams for console applications. More...
 
class  xtd::console_cancel_event_args
 Provides data for the console::cancel_key_press event. This class cannot be inherited. More...
 
class  xtd::console_key_info
 Specifies the standard keys on a console. More...
 
struct  xtd::const_overload< args_t >
 Represents class that use to determine one of const overloaded methods. More...
 
class  xtd::convert
 Represents API to convert base type code. More...
 
class  xtd::convert_pointer
 Represents API to convert pointers. More...
 
class  xtd::convert_string
 Represents API to convert string containers. More...
 
class  xtd::cpp_language
 Represents information about c++ libraries, such as the version and language identifier. This class cannot be inherited. More...
 
class  xtd::date_time
 Represents an instant in time, typically expressed as a date and time of day. More...
 
class  xtd::debugstreambuf
 Provides an std::stringbuf for xtd::diagnostics::debug. More...
 
class  xtd::delegate< result_t(arguments_t...)>
 Represents a delegate, which is a data structure that refers to a static method or to a class instance && an instance method of that class. More...
 
class  xtd::diagnostics::boolean_switch
 Provides a simple on/off switch that controls debugging and tracing output. More...
 
class  xtd::diagnostics::console_trace_listener
 Directs tracing or debugging output to either the standard output or the standard error stream. More...
 
class  xtd::diagnostics::data_received_event_args
 Provides data for the xtd::diagnostics::process::output_data_received and xtd::diagnostics::process::error_data_received events. More...
 
class  xtd::diagnostics::debug
 Provides a set of methods and properties that help you debug the execution of your code. This class cannot be inherited. More...
 
class  xtd::diagnostics::debugger
 Enables communication with a debugger. This class cannot be inherited. More...
 
class  xtd::diagnostics::default_trace_listener
 Provides the default output methods and behavior for tracing. More...
 
class  xtd::diagnostics::event_type_filter
 Indicates whether a listener should trace based on the event type. More...
 
class  xtd::diagnostics::ostream_trace_listener
 Directs tracing or debugging output to a std::ostream, such as std::fstream, std::stream... More...
 
class  xtd::diagnostics::process
 Provides access to local and remote processes and enables you to start and stop local system processes. More...
 
class  xtd::diagnostics::process::error_data_received_event
 Represents a process error data received event. More...
 
class  xtd::diagnostics::process::exit_event
 Represents a process exit event. More...
 
class  xtd::diagnostics::process::output_data_received_event
 Represents a process output data received event. More...
 
class  xtd::diagnostics::process_start_info
 Specifies a set of values that are used when you start a process. More...
 
class  xtd::diagnostics::source_filter
 Indicates whether a listener should trace a message based on the source of a trace. More...
 
class  xtd::diagnostics::source_switch
 Provides a multilevel switch to control tracing and debug output without recompiling your code. More...
 
class  xtd::diagnostics::stack_frame
 Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the call stack for the current thread. More...
 
class  xtd::diagnostics::stack_trace
 Represents a stack trace, which is an ordered collection of one or more stack frames. More...
 
class  xtd::diagnostics::stopwatch
 Provides a set of methods and properties that you can use to accurately measure elapsed time. More...
 
class  xtd::diagnostics::switch_base
 Provides an abstract base class to create new debugging and tracing switches. More...
 
class  xtd::diagnostics::trace
 Provides a set of methods and properties that help you debug the execution of your code. This class cannot be inherited. More...
 
class  xtd::diagnostics::trace_event_cache
 Provides trace event data specific to a thread and a process. More...
 
class  xtd::diagnostics::trace_filter
 Provides the base class for trace filter implementations. More...
 
class  xtd::diagnostics::trace_listener
 Provides the abstract base class for the listeners who monitor trace and debug output. More...
 
class  xtd::diagnostics::trace_listener_collection
 Represents a collection of xtd::diagnostics::trace_listener. More...
 
class  xtd::diagnostics::trace_source
 Provides a set of methods and properties that enable applications to trace the execution of code and associate trace messages with their source. More...
 
class  xtd::diagnostics::trace_switch
 Provides a multilevel switch to control tracing and debug output without recompiling your code. More...
 
class  xtd::distribution
 Represents information about an operating system distribution, such as the version and name. This class cannot be inherited. More...
 
class  xtd::divided_by_zero_exception
 The exception that is thrown when there is an attempt to divide an integral or decimal value by zero. More...
 
class  xtd::domain_exception
 The exception that is thrown for errors in domain. That is, situations where the inputs are outside of the domain on which an operation is defined.. More...
 
class  xtd::enum_object< enum_t >
 Provides the base class for enumerations. More...
 
class  xtd::enum_object< std::nullptr_t >
 Provides the base class for enumerations. More...
 
struct  xtd::enum_register< enum_t >
 Provides the registration struct for enumerations. More...
 
struct  xtd::enum_set_attribute< enum_t >
 Provides the set attribute struct for enumerations. More...
 
class  xtd::environment
 The environment class. More...
 
class  xtd::event< object_t, handler_t >
 Represents an event. More...
 
class  xtd::event_args
 Represents the base class for classes that contain event data, and provides a value to use for events that do not include event data. More...
 
class  xtd::foreground_color
 Represent foreground color output manipulator class. More...
 
class  xtd::format_exception
 The exception that is thrown when the format of an argument does not meet the parameter specifications of the invoked method. More...
 
struct  xtd::guid
 Represents a globally unique identifier (GUID). A GUID is a 128-bit integer (16 bytes) that can be used across all computers and networks wherever a unique identifier is required. Such an identifier has a very low probability of being duplicated. More...
 
class  xtd::iasync_result
 Represents the status of an asynchronous operation. More...
 
class  xtd::icomparable< type_t >
 Defines a generalized comparison method that a value type or class implements to create a type-specific comparison method. More...
 
class  xtd::iequatable< type_t >
 Defines a generalized method that a value type or class implements to create a type-specific method for determining equality of instances. More...
 
class  xtd::index_out_of_range_exception
 The exception that is thrown when an attempt is made to access an element of an array with an index that is outside the bounds of the array. More...
 
class  xtd::interface
 Represent an interface class. More...
 
class  xtd::interrupt_exception
 The exception that is thrown when a method call is invalid for the object's current state. More...
 
class  xtd::invalid_cast_exception
 The exception that is thrown for invalid casting or explicit conversion. More...
 
class  xtd::invalid_operation_exception
 The exception that is thrown when a method call is invalid for the object's current state. More...
 
class  xtd::invalid_program_exception
 The exception that is thrown when a program contains invalid metadata. Generally this indicates a bug in the compiler that generated the program. More...
 
class  xtd::io::binary_reader
 Reads primitive data types as binary values in a specific encoding. More...
 
class  xtd::io::binary_writer
 Writes primitive types in binary to a stream and supports writing strings. More...
 
class  xtd::io::directory
 Exposes static methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited. More...
 
class  xtd::io::directory_info
 Exposes instance methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited. More...
 
class  xtd::io::directory_not_found_exception
 The exception that is thrown when part of a file or directory cannot be found. More...
 
class  xtd::io::drive_info
 Provides access to information on a drive. More...
 
class  xtd::io::drive_not_found_exception
 The exception that is thrown when trying to access a drive or share that is not available. More...
 
class  xtd::io::end_of_stream_exception
 The exception that is thrown when reading is attempted past the end of a stream. More...
 
class  xtd::io::file
 Provides static methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of std::fstream objects. More...
 
class  xtd::io::file_format_exception
 The exception that is thrown when the format of an argument does not meet the parameter specifications of the invoked method. More...
 
class  xtd::io::file_info
 Provides static methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of std::fstream objects. More...
 
class  xtd::io::file_load_exception
 The exception that is thrown when a managed assembly is found but cannot be loaded. More...
 
class  xtd::io::file_not_found_exception
 The exception that is thrown when an attempt to access a file that does not exist on disk fails. More...
 
class  xtd::io::file_system_info
 Provides the base class for both xtd::io::file_info and xtd::io::directory_info objects. More...
 
class  xtd::io::io_exception
 The exception that is thrown when an I/O error occurs. More...
 
class  xtd::io::null_text_reader
 Represents a null text reader. More...
 
class  xtd::io::null_text_writer
 Represents a null text writer. More...
 
class  xtd::io::path
 Performs operations on std::basic_string instances that contain file or directory path information. These operations are performed in a cross-platform manner. More...
 
class  xtd::io::path_too_long_exception
 The exception that is thrown when a path or file name is longer than the system-defined maximum length. More...
 
class  xtd::io::stream_reader
 Implements a xtd::io::text_reader that reads characters from a byte stream. More...
 
class  xtd::io::stream_writer
 Implements a xtd::io::text_writer for writing characters to a stream. More...
 
class  xtd::io::string_reader
 Implements a xtd::io::text_reader that reads from a string. More...
 
class  xtd::io::string_writer
 Implements a xtd::io::text_writer for writing characters to a string. More...
 
class  xtd::io::synchronized_text_reader
 Represents a synchronized text reader. More...
 
class  xtd::io::synchronized_text_writer
 Represents a synchronized text writer. More...
 
class  xtd::io::text_reader
 Represents a reader that can read a sequential series of characters. More...
 
class  xtd::io::text_writer
 Represents a writer that can write a sequential series of characters. More...
 
class  xtd::iobservable< type_t >
 Provides a mechanism for receiving push-based notifications. More...
 
class  xtd::iobserver< type_t >
 Provides a mechanism for receiving push-based notifications. More...
 
class  xtd::iprogress< type_t >
 Defines a provider for progress updates. More...
 
class  xtd::isynchronize_invoke
 Provides a way to synchronously or asynchronously execute a delegate. More...
 
class  xtd::length_exception
 The exception that is thrown when an attempts to exceed implementation defined length limits for some object. More...
 
class  xtd::math
 Provides constants and static methods for trigonometric, logarithmic, and other common mathematical functions. More...
 
class  xtd::media::system_sound
 Represents a system sound type. More...
 
class  xtd::media::system_sounds
 Retrieves sounds associated with a set of Windows operating system sound-event types. This class cannot be inherited. More...
 
class  xtd::net::cookie_exception
 The exception that is thrown when an error is made adding a xtd::net::cookie to a xtd::net::cookie_container. More...
 
class  xtd::net::dns
 Provides simple domain name resolution functionality. More...
 
class  xtd::net::dns_end_point
 Represents a network endpoint as a host name or a string representation of an IP address and a port number. More...
 
class  xtd::net::end_point
 Identifies a network address. This is an abstract class. More...
 
class  xtd::net::ip_address
 Provides an Internet Protocol (IP) address. More...
 
class  xtd::net::ip_end_point
 Represents a network endpoint as an IP address and a port number. More...
 
class  xtd::net::ip_host_entry
 Provides a container class for Internet host address information. More...
 
class  xtd::net::network_credential
 Provides credentials for password-based authentication schemes such as basic, digest, NTLM, and Kerberos authentication. More...
 
class  xtd::net::protocol_violation_exception
 The exception that is thrown when an error is made adding a xtd::net::cookie to a xtd::net::cookie_container. More...
 
class  xtd::net::socket_address
 Stores serialized information from end_point derived classes. More...
 
class  xtd::net::sockets::ip_packet_information
 Gets the network interface information that is associated with a call to xtd::net::sockets::socket::receive_message_from or xtd::net::sockets::socket::end_receive_message_from. More...
 
class  xtd::net::sockets::ip_v6_multicast_option
 Contains option values for joining an IPv6 multicast group. More...
 
class  xtd::net::sockets::linger_option
 Specifies whether a xtd::net::sockets::socket will remain connected after a call to the xtd::net::sockets::socket::close or xtd::net::sockets::tcp_client::close methods and the length of time it will remain connected, if data remains to be sent. More...
 
class  xtd::net::sockets::multicast_option
 Contains IPAddress values used to join and drop multicast groups. More...
 
class  xtd::net::sockets::network_stream
 Provides the underlying stream of data for network access. More...
 
class  xtd::net::sockets::send_packets_element
 Represents an element in a xtd::net::sockets::send_packets_element array. More...
 
class  xtd::net::sockets::socket
 Implements the Berkeley sockets interface. More...
 
class  xtd::net::sockets::socket_async_event_args
 Represents an asynchronous socket operation. More...
 
class  xtd::net::sockets::socket_exception
 The exception that is thrown when a socket error occurs. More...
 
class  xtd::net::sockets::socket_information
 Encapsulates the information that is necessary to duplicate a xtd::net::sockets::socket. More...
 
class  xtd::net::sockets::tcp_client
 Provides client connections for TCP network services. More...
 
class  xtd::net::sockets::tcp_listener
 Listens for connections from TCP network clients. More...
 
class  xtd::net::sockets::udp_client
 Provides User Datagram Protocol (UDP) network services. More...
 
class  xtd::net::web_exception
 The exception that is thrown when an error is made adding a xtd::net::cookie to a xtd::net::cookie_container. More...
 
struct  xtd::non_const_overload< args_t >
 Represents class that use to determine one of non const overloaded methods. More...
 
class  xtd::not_finite_number_exception
 The exception that is thrown when a floating-point value is positive infinity, negative infinity, or Not-a-Number (NaN). More...
 
class  xtd::not_implemented_exception
 The exception that is thrown when a requested method or operation is not implemented. More...
 
class  xtd::not_supported_exception
 The exception that is thrown when an invoked method is not supported, or when there is an attempt to read, seek, or write to a stream that does not support the invoked functionality. More...
 
class  xtd::null_pointer_exception
 The exception that is thrown when there is an attempt to dereference a null object pointer. More...
 
class  xtd::object
 Supports all classes in the xtd class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all classes in the xtd. It is the root of the type hierarchy. More...
 
class  xtd::object_closed_exception
 The exception that is thrown when one of the arguments provided to a method is not valid. More...
 
class  xtd::operating_system
 Represents information about an operating system, such as the version and platform identifier. This class cannot be inherited. More...
 
class  xtd::operation_canceled_exception
 The exception that is thrown in a thread upon cancellation of an operation that the thread was executing. More...
 
class  xtd::out_of_memory_exception
 The exception that is thrown when one of the arguments provided to a method is not valid. More...
 
class  xtd::overflow_exception
 The exception that is thrown when an arithmetic, casting, or conversion operation in a checked context results in an overflow. More...
 
struct  xtd::overload< args_t >
 Represents class that use to determine one of const and non const overloaded methods. More...
 
class  xtd::platform_not_supported_exception
 The exception that is thrown when a feature does not run on a particular platform. More...
 
class  xtd::processor
 Represents information about a processor, such as the architecture. This class cannot be inherited. More...
 
class  xtd::program_exit_event_args
 Provides data for the environment program exit event. This class cannot be inherited. More...
 
class  xtd::random
 Represents a pseudo-random number generator, a device that produces a sequence of numbers that meet certain statistical requirements for randomness. More...
 
class  xtd::reflection::assembly
 Represents an assembly, which is a reusable, versionable, and self-describing building block of an application. More...
 
class  xtd::reflection::assembly_company_attribute
 Defines a company name custom attribute for an assembly manifest. More...
 
class  xtd::reflection::assembly_configuration_attribute
 Specifies the build configuration, such as retail or debug, for an assembly. More...
 
class  xtd::reflection::assembly_copyright_attribute
 Defines a copyright custom attribute for an assembly manifest. More...
 
class  xtd::reflection::assembly_culture_attribute
 Specifies which culture the assembly supports. More...
 
class  xtd::reflection::assembly_description_attribute
 Provides a text description for an assembly. More...
 
class  xtd::reflection::assembly_file_version_attribute
 Instructs a compiler to use a specific version number for the Win32 file version resource. The Win32 file version is not required to be the same as the assembly's version number. More...
 
class  xtd::reflection::assembly_guid_attribute
 Specifies the guid of the assembly being attributed. More...
 
class  xtd::reflection::assembly_identifier_attribute
 Specifies the identifier of the assembly being attributed. More...
 
class  xtd::reflection::assembly_name_attribute
 Specifies a name for an assembly. More...
 
class  xtd::reflection::assembly_product_attribute
 Defines a product name custom attribute for an assembly manifest. More...
 
class  xtd::reflection::assembly_title_attribute
 Specifies a title for an assembly. More...
 
class  xtd::reflection::assembly_trademark_attribute
 Defines a trademark custom attribute for an assembly manifest. More...
 
class  xtd::reflection::assembly_version_attribute
 Specifies the version of the assembly being attributed. More...
 
class  xtd::reset_color
 Represent reset color output manipulator class. More...
 
class  xtd::security::secure_string
 Represents text that should be kept confidential, such as by deleting it from computer memory when no longer needed. This class cannot be inherited. More...
 
class  xtd::security::security_exception
 The exception that is thrown when an I/O error occurs. More...
 
class  xtd::signal_cancel_event_args
 Provides data for the environment signal event. This class cannot be inherited. More...
 
class  xtd::software_termination_exception
 The exception that is thrown when a method call is invalid for the object's current state. More...
 
class  xtd::speech::synthesis::prompt
 Represents information about what can be rendered, either text or an audio file, by the xtd::speech::synthesis::speech_synthesizer. More...
 
class  xtd::speech::synthesis::prompt_event_args
 Provides data for the method_name_completed event. More...
 
class  xtd::speech::synthesis::speech_synthesizer
 Provides access to the functionality of an installed speech synthesis engine. More...
 
class  xtd::speech::synthesis::state_changed_event_args
 Returns data from the xtd::speech::synthesis::speech_synthesizer::state_changed event. More...
 
class  xtd::startup
 Defines the xtd::startup object that can be used in the main method to safely call the application's main entry point. More...
 
class  xtd::static_object
 Represent a static object. A static class can't be instantiated (constructors are deleted). More...
 
class  xtd::system_exception
 Defines the base class for predefined exceptions in the xtd namespace. More...
 
class  xtd::target_type
 Represents information about target type, such as the target identifier. This class cannot be inherited. More...
 
class  xtd::threading::abandoned_mutex_exception
 The exception that is thrown when a Thread is in an invalid ThreadState for the method call. More...
 
class  xtd::threading::auto_reset_event
 Represents a thread synchronization event that, when signaled, resets automatically after releasing a single waiting thread. This class cannot be inherited. More...
 
class  xtd::threading::barrier
 Enables multiple tasks to cooperatively work on an algorithm in parallel through multiple phases. More...
 
class  xtd::threading::barrier_post_phase_exception
 The exception that is thrown when a Thread is in an invalid ThreadState for the method call. More...
 
class  xtd::threading::cancellation_token
 Propagates notification that operations should be canceled. More...
 
class  xtd::threading::cancellation_token_registration
 Propagates notification that operations should be canceled. More...
 
class  xtd::threading::cancellation_token_source
 Signals to a xtd::threading::cancellation_token that it should be canceled. More...
 
class  xtd::threading::countdown_event
 Represents a synchronization primitive that is signaled when its count reaches zero. More...
 
class  xtd::threading::event_wait_handle
 Represents a thread synchronization event. More...
 
class  xtd::threading::interlocked
 Provides atomic operations for variables that are shared by multiple threads. More...
 
class  xtd::threading::lock_guard
 Provides a mechanism that synchronizes access to objects with xtd::threading::monitor. More...
 
class  xtd::threading::lock_recursion_exception
 The exception that is thrown when a Thread is in an invalid ThreadState for the method call. More...
 
class  xtd::threading::manual_reset_event
 Represents a thread synchronization event that, when signaled, must be reset manually. This class cannot be inherited. More...
 
class  xtd::threading::monitor
 Provides a mechanism that synchronizes access to objects. More...
 
class  xtd::threading::mutex
 A synchronization primitive that can also be used for interprocess synchronization. More...
 
class  xtd::threading::registered_wait_handle
 A synchronization primitive that can also be used for interprocess synchronization. More...
 
class  xtd::threading::semaphore
 Limits the number of threads that can access a resource or pool of resources concurrently. More...
 
class  xtd::threading::semaphore_full_exception
 The exception that is thrown when a method call is invalid for the object's current state. More...
 
class  xtd::threading::spin_lock
 Provides a mutual exclusion lock primitive where a thread trying to acquire the lock waits in a loop repeatedly checking until the lock becomes available. More...
 
class  xtd::threading::synchronization_lock_exception
 The exception that is thrown when a Thread is in an invalid ThreadState for the method call. More...
 
class  xtd::threading::thread
 Creates and controls a thread, sets its priority, and gets its status. More...
 
class  xtd::threading::thread_abort_exception
 The exception that is thrown when a method call is invalid for the object's current state. More...
 
class  xtd::threading::thread_interrupted_exception
 The exception that is thrown when a Thread is interrupted while it is in a waiting state. More...
 
class  xtd::threading::thread_local_object< value_t >
 Provides thread-local storage of data. More...
 
class  xtd::threading::thread_pool
 Provides a pool of threads that can be used to execute tasks, post work items, process asynchronous I/O, wait on behalf of other threads, and process timers. More...
 
class  xtd::threading::thread_state_exception
 The exception that is thrown when a Thread is in an invalid ThreadState for the method call. More...
 
class  xtd::threading::timeout
 Contains a constant used to specify an infinite amount of time. This class cannot be inherited. More...
 
class  xtd::threading::timer
 Provides a mechanism for executing a method on a thread pool thread at specified intervals. This class cannot be inherited. More...
 
class  xtd::threading::wait_handle
 Encapsulates operating system specific objects that wait for exclusive access to shared resources. More...
 
class  xtd::threading::wait_handle_cannot_be_opened_exception
 The exception that is thrown when a Thread is in an invalid ThreadState for the method call. More...
 
struct  xtd::time_span
 Represents a time interval. More...
 
class  xtd::time_zone_not_found_exception
 The exception that is thrown when the time allotted for a process or operation has expired. More...
 
class  xtd::timeout_exception
 The exception that is thrown when the time allotted for a process or operation has expired. More...
 
class  xtd::timers::elapsed_event_args
 Provides data for the xtd::timers::timer::elapsed event. More...
 
class  xtd::timers::timer
 Generates an event after a set interval, with an option to generate recurring events. More...
 
class  xtd::tracestreambuf
 Provides an std::stringbuf for xtd::diagnostics::trace. More...
 
class  xtd::translator
 Represents translator class. This class cannot be inherited. More...
 
class  xtd::type_object
 Represents type declarations: class types, interface types, array types, value types, enumeration types, type parameters, generic type definitions, and open or closed constructed generic types. More...
 
class  xtd::unauthorized_access_exception
 The exception that is thrown when one of the arguments provided to a method is not valid. More...
 
class  xtd::underflow_exception
 The exception that is thrown when an arithmetic, casting, or conversion operation in a checked context results in an underflow. More...
 
class  xtd::uri
 Provides an object representation of a uniform resource identifier (URI) and easy access to the parts of the URI. More...
 
class  xtd::uri_format_exception
 The exception that is thrown when an invalid Uniform Resource Identifier (URI) is detected. More...
 
class  xtd::uri_template_match_exception
 Represents an error when matching a Uri to a UriTemplateTable. More...
 
class  xtd::ustring
 Represents text as a sequence of UTF-8 code units. More...
 
class  xtd::version
 Represents the version number of an assembly, operating system, or the xtd. This class cannot be inherited. More...
 
class  xtd::xml_syntax_exception
 The exception that is thrown when there is a syntax error in XML parsing. More...
 

Macros

#define add_last_arg_to_command_(command, last_arg, ...)   __add_last_arg_to_command_chooser__(command, last_arg, __VA_ARGS__)(command, last_arg, __VA_ARGS__)
 Adds last argument to a command with variadic arguments. More...
 
#define const_overload_   xtd::const_overload_
 Helper keyword that use to determine one of const overloaded methods. More...
 
#define non_const_overload_   xtd::non_const_overload_
 Helper keyword that use to determine one of non const overloaded methods. More...
 
#define overload_   xtd::overload_
 Helper keyword that use to determine one of const and non const overloaded methods. More...
 

Typedefs

template<typename... arguments_t>
using xtd::action = delegate< void(arguments_t...)>
 Represents a xtd::delegate that has variable parameters and does not return a value. More...
 
using xtd::async_callback = delegate< void(async_result ar)>
 References a method to be called when a corresponding asynchronous operation completes. More...
 
using xtd::async_result = std::shared_ptr< xtd::iasync_result >
 Represents the status of an asynchronous operation. More...
 
using xtd::const_object_ref = std::reference_wrapper< const object >
 Represents an object reference. More...
 
template<typename enum_t >
using xtd::enum_collection = std::vector< std::pair< enum_t, xtd::ustring > >
 Represents a pair of an enum_t value and a string of an enum of type enum_t. More...
 
template<typename result_t , typename... arguments_t>
using xtd::func = delegate< result_t(arguments_t...)>
 Represents a delegate that has variables parameters and returns a value of the type specified by the result_t type. More...
 
using xtd::object_ref = std::reference_wrapper< object >
 Represents an object reference. More...
 
using xtd::threading::parameterized_thread_start = delegate< void(std::any)>
 Represents the method that executes on a xtd::threading::thread. More...
 
template<typename type_t >
using xtd::predicate = delegate< bool(type_t)>
 Represents a delegate that defines a set of criteria and determines whether the specified object meets those criteria. More...
 
using xtd::threading::thread_start = delegate< void()>
 Represents the method that executes on a xtd::threading::thread. More...
 
using xtd::threading::timer_callback = action< std::any >
 Represents the method that handles calls from a xtd::threading::timer. More...
 
using xtd::threading::wait_callback = delegate< void(std::any)>
 Represents a callback method to be executed by a thread pool thread. More...
 
using xtd::threading::wait_or_timer_callback = delegate< void(std::any, bool)>
 Represents a method to be called when a xtd::threading::wait_handle is signaled or times out. More...
 

Enumerations

enum  xtd::net::sockets::address_family {
  xtd::net::sockets::address_family::unknown = -1,
  xtd::net::sockets::address_family::unspecified = 0,
  xtd::net::sockets::address_family::unix = 1,
  xtd::net::sockets::address_family::inter_network = 2,
  xtd::net::sockets::address_family::imp_link = 3,
  xtd::net::sockets::address_family::pup = 4,
  xtd::net::sockets::address_family::chaos = 5,
  xtd::net::sockets::address_family::ns = 6,
  xtd::net::sockets::address_family::ipx = 6,
  xtd::net::sockets::address_family::iso = 7,
  xtd::net::sockets::address_family::osi = 7,
  xtd::net::sockets::address_family::ecma = 8,
  xtd::net::sockets::address_family::data_kit = 9,
  xtd::net::sockets::address_family::ccitt = 10,
  xtd::net::sockets::address_family::sna = 11,
  xtd::net::sockets::address_family::dec_net = 12,
  xtd::net::sockets::address_family::data_link = 13,
  xtd::net::sockets::address_family::lat = 14,
  xtd::net::sockets::address_family::hyper_channel = 15,
  xtd::net::sockets::address_family::apple_talk = 16,
  xtd::net::sockets::address_family::net_bios = 17,
  xtd::net::sockets::address_family::voice_view = 18,
  xtd::net::sockets::address_family::fire_fox = 19,
  xtd::net::sockets::address_family::banyan = 21,
  xtd::net::sockets::address_family::atm = 22,
  xtd::net::sockets::address_family::inter_network_v6 = 23,
  xtd::net::sockets::address_family::cluster = 24,
  xtd::net::sockets::address_family::ieee12844 = 25,
  xtd::net::sockets::address_family::irda = 26,
  xtd::net::sockets::address_family::network_designers = 28,
  xtd::net::sockets::address_family::max = 29
}
 Specifies the addressing scheme that an instance of the xtd::net::sockets::socket class can use. More...
 
enum  xtd::architecture_id {
  xtd::architecture_id::unknown = -1,
  xtd::architecture_id::x86,
  xtd::architecture_id::arm
}
 Identifies the processor architecture, supported by an assembly. More...
 
enum  xtd::diagnostics::assert_dialog_result {
  xtd::diagnostics::assert_dialog_result::abort = 3,
  xtd::diagnostics::assert_dialog_result::retry = 4,
  xtd::diagnostics::assert_dialog_result::ignore = 5
}
 Specifies identifiers to indicate the return value of an assert dialog box. More...
 
enum  xtd::build_type {
  xtd::build_type::debug = 0,
  xtd::build_type::release
}
 Identifies the build type. More...
 
enum  xtd::compiler_id {
  xtd::compiler_id::unknown = -1,
  xtd::compiler_id::microsoft_visual_studio,
  xtd::compiler_id::clang,
  xtd::compiler_id::gcc
}
 Identifies the compiler, supported by an assembly. More...
 
enum  xtd::console_color {
  xtd::console_color::default_color = -1,
  xtd::console_color::black,
  xtd::console_color::dark_blue,
  xtd::console_color::dark_green,
  xtd::console_color::dark_cyan,
  xtd::console_color::dark_red,
  xtd::console_color::dark_magenta,
  xtd::console_color::dark_yellow,
  xtd::console_color::gray,
  xtd::console_color::dark_gray,
  xtd::console_color::blue,
  xtd::console_color::green,
  xtd::console_color::cyan,
  xtd::console_color::red,
  xtd::console_color::magenta,
  xtd::console_color::yellow,
  xtd::console_color::white
}
 Specifies constants that define foreground and background colors for the console. More...
 
enum  xtd::console_key {
  xtd::console_key::backspace = 8,
  xtd::console_key::tab = 9,
  xtd::console_key::clear = 12,
  xtd::console_key::enter = 13,
  xtd::console_key::pause = 19,
  xtd::console_key::caps_lock = 20,
  xtd::console_key::escape = 27,
  xtd::console_key::spacebar = 32,
  xtd::console_key::page_up = 33,
  xtd::console_key::page_down = 34,
  xtd::console_key::end = 35,
  xtd::console_key::home = 36,
  xtd::console_key::left_arrow = 37,
  xtd::console_key::up_arrow = 38,
  xtd::console_key::right_arrow = 39,
  xtd::console_key::down_arrow = 40,
  xtd::console_key::select = 41,
  xtd::console_key::print = 42,
  xtd::console_key::execute = 43,
  xtd::console_key::print_screen = 44,
  xtd::console_key::insert = 45,
  xtd::console_key::del = 46,
  xtd::console_key::help = 47,
  xtd::console_key::d0 = 48,
  xtd::console_key::d1 = 49,
  xtd::console_key::d2 = 50,
  xtd::console_key::d3 = 51,
  xtd::console_key::d4 = 52,
  xtd::console_key::d5 = 53,
  xtd::console_key::d6 = 54,
  xtd::console_key::d7 = 55,
  xtd::console_key::d8 = 56,
  xtd::console_key::d9 = 57,
  xtd::console_key::a = 65,
  xtd::console_key::b = 66,
  xtd::console_key::c = 67,
  xtd::console_key::d = 68,
  xtd::console_key::e = 69,
  xtd::console_key::f = 70,
  xtd::console_key::g = 71,
  xtd::console_key::h = 72,
  xtd::console_key::i = 73,
  xtd::console_key::j = 74,
  xtd::console_key::k = 75,
  xtd::console_key::l = 76,
  xtd::console_key::m = 77,
  xtd::console_key::n = 78,
  xtd::console_key::o = 79,
  xtd::console_key::p = 80,
  xtd::console_key::q = 81,
  xtd::console_key::r = 82,
  xtd::console_key::s = 83,
  xtd::console_key::t = 84,
  xtd::console_key::u = 85,
  xtd::console_key::v = 86,
  xtd::console_key::w = 87,
  xtd::console_key::x = 88,
  xtd::console_key::y = 89,
  xtd::console_key::z = 90,
  xtd::console_key::left_windows = 91,
  xtd::console_key::right_windows = 92,
  xtd::console_key::applications = 93,
  xtd::console_key::sleep = 95,
  xtd::console_key::num_pad_0 = 96,
  xtd::console_key::num_pad_1 = 97,
  xtd::console_key::num_pad_2 = 98,
  xtd::console_key::num_pad_3 = 99,
  xtd::console_key::num_pad_4 = 100,
  xtd::console_key::num_pad_5 = 101,
  xtd::console_key::num_pad_6 = 102,
  xtd::console_key::num_pad_7 = 103,
  xtd::console_key::num_pad_8 = 104,
  xtd::console_key::num_pad_9 = 105,
  xtd::console_key::multiply = 106,
  xtd::console_key::add = 107,
  xtd::console_key::separator = 108,
  xtd::console_key::subtract = 109,
  xtd::console_key::decimal = 110,
  xtd::console_key::divide = 111,
  xtd::console_key::f1 = 112,
  xtd::console_key::f2 = 113,
  xtd::console_key::f3 = 114,
  xtd::console_key::f4 = 115,
  xtd::console_key::f5 = 116,
  xtd::console_key::f6 = 117,
  xtd::console_key::f7 = 118,
  xtd::console_key::f8 = 119,
  xtd::console_key::f9 = 120,
  xtd::console_key::f10 = 121,
  xtd::console_key::f11 = 122,
  xtd::console_key::f12 = 123,
  xtd::console_key::f13 = 124,
  xtd::console_key::f14 = 125,
  xtd::console_key::f15 = 126,
  xtd::console_key::f16 = 127,
  xtd::console_key::f17 = 128,
  xtd::console_key::f18 = 129,
  xtd::console_key::f19 = 130,
  xtd::console_key::f20 = 131,
  xtd::console_key::f21 = 132,
  xtd::console_key::f22 = 133,
  xtd::console_key::f23 = 134,
  xtd::console_key::f24 = 135,
  xtd::console_key::browser_back = 166,
  xtd::console_key::browser_forward = 167,
  xtd::console_key::browser_refresh = 168,
  xtd::console_key::browser_stop = 169,
  xtd::console_key::browser_search = 170,
  xtd::console_key::browser_favorites = 171,
  xtd::console_key::browser_home = 172,
  xtd::console_key::volume_mute = 173,
  xtd::console_key::volume_down = 174,
  xtd::console_key::volume_up = 175,
  xtd::console_key::media_next = 176,
  xtd::console_key::media_previous = 177,
  xtd::console_key::media_stop = 178,
  xtd::console_key::media_play = 179,
  xtd::console_key::launch_mail = 180,
  xtd::console_key::launch_media_select = 181,
  xtd::console_key::launch_app1 = 182,
  xtd::console_key::launch_app2 = 183,
  xtd::console_key::oem1 = 186,
  xtd::console_key::oem_plus = 187,
  xtd::console_key::oem_comma = 188,
  xtd::console_key::oem_minus = 189,
  xtd::console_key::oem_period = 190,
  xtd::console_key::oem2 = 191,
  xtd::console_key::oem3 = 192,
  xtd::console_key::oem4 = 219,
  xtd::console_key::oem5 = 220,
  xtd::console_key::oem6 = 221,
  xtd::console_key::oem7 = 222,
  xtd::console_key::oem8 = 223,
  xtd::console_key::oem102 = 226,
  xtd::console_key::process = 229,
  xtd::console_key::packet = 231,
  xtd::console_key::attention = 246,
  xtd::console_key::cr_sel = 247,
  xtd::console_key::ex_sel = 248,
  xtd::console_key::erase_end_of_file = 249,
  xtd::console_key::play = 250,
  xtd::console_key::zoom = 251,
  xtd::console_key::no_name = 252,
  xtd::console_key::pa1 = 253,
  xtd::console_key::oem_clear = 254
}
 Specifies the standard keys on a console. More...
 
enum  xtd::console_modifiers {
  xtd::console_modifiers::none = 0,
  xtd::console_modifiers::alt = 0b1,
  xtd::console_modifiers::shift = 0b10,
  xtd::console_modifiers::control = 0b100
}
 Represents the SHIFT, ALT, and CTRL modifier keys on a keyboard. More...
 
enum  xtd::console_special_key {
  xtd::console_special_key::control_break,
  xtd::console_special_key::control_c,
  xtd::console_special_key::control_backslash,
  xtd::console_special_key::control_z
}
 Specifies combinations of modifier and console keys that can interrupt the current process. More...
 
enum  xtd::date_time_kind {
  xtd::date_time_kind::unspecified,
  xtd::date_time_kind::utc,
  xtd::date_time_kind::local
}
 Specifies whether a DateTime object represents a local time, a Coordinated Universal Time (UTC), or is not specified as either local time or UTC. More...
 
enum  xtd::day_of_week {
  xtd::day_of_week::sunday,
  xtd::day_of_week::monday,
  xtd::day_of_week::tuesday,
  xtd::day_of_week::wednesday,
  xtd::day_of_week::thursday,
  xtd::day_of_week::friday,
  xtd::day_of_week::saturday
}
 Specifies the day of the week. More...
 
enum  xtd::enum_attribute {
  xtd::enum_attribute::standard,
  xtd::enum_attribute::flags
}
 Specifies the enum attribute. More...
 
enum  xtd::environment_variable_target {
  xtd::environment_variable_target::process = 0,
  xtd::environment_variable_target::user = 1,
  xtd::environment_variable_target::machine = 2
}
 Specifies the location where an environment variable is stored or retrieved in a set or get operation. More...
 
enum  xtd::exit_mode {
  xtd::exit_mode::normal = 0,
  xtd::exit_mode::quick = 1
}
 Specifies exit mode for the xtd::environment::program_exit event. More...
 
enum  xtd::exit_status {
  xtd::exit_status::success = EXIT_SUCCESS,
  xtd::exit_status::failure = EXIT_FAILURE
}
 Specifies exit status for the xtd::environment::exit method. More...
 
enum  xtd::io::file_access {
  xtd::io::file_access::read = 0b1,
  xtd::io::file_access::write = 0b10,
  xtd::io::file_access::read_write = 0b11
}
 Defines constants for read, write, or read/write access to a file. This enumeration has a flags attribute that allows a bitwise combination of its member values. More...
 
enum  xtd::io::file_attributes {
  xtd::io::file_attributes::read_only = 0x0001,
  xtd::io::file_attributes::hidden = 0x0002,
  xtd::io::file_attributes::system = 0x0004,
  xtd::io::file_attributes::directory = 0x0010,
  xtd::io::file_attributes::archive = 0x0020,
  xtd::io::file_attributes::device = 0x0040,
  xtd::io::file_attributes::normal = 0x0080,
  xtd::io::file_attributes::temporary = 0x0100,
  xtd::io::file_attributes::sparse_file = 0x0200,
  xtd::io::file_attributes::reparse_point = 0x0400,
  xtd::io::file_attributes::compressed = 0x0800,
  xtd::io::file_attributes::offline = 0x1000,
  xtd::io::file_attributes::not_content_indexed = 0x2000,
  xtd::io::file_attributes::encrypted = 0x4000
}
 Provides attributes for files and directories. More...
 
enum  xtd::io::file_permissions {
  xtd::io::file_permissions::none = 0,
  xtd::io::file_permissions::owner_read = 0400,
  xtd::io::file_permissions::owner_write = 0200,
  xtd::io::file_permissions::owner_execute = 0100,
  xtd::io::file_permissions::owner_all = owner_read | owner_write | owner_execute,
  xtd::io::file_permissions::group_read = 040,
  xtd::io::file_permissions::group_write = 020,
  xtd::io::file_permissions::group_execute = 010,
  xtd::io::file_permissions::group_all = group_read | group_write | group_execute,
  xtd::io::file_permissions::others_read = 04,
  xtd::io::file_permissions::others_write = 02,
  xtd::io::file_permissions::others_execute = 01,
  xtd::io::file_permissions::others_all = others_read | others_write | others_execute,
  xtd::io::file_permissions::all = owner_all | group_all | others_all,
  xtd::io::file_permissions::set_uid = 04000,
  xtd::io::file_permissions::set_gid = 02000,
  xtd::io::file_permissions::sticky_bit = 01000,
  xtd::io::file_permissions::mask = all | set_uid | set_gid | sticky_bit,
  xtd::io::file_permissions::unknown = 0xFFF
}
 Provides permissions for files and directories. More...
 
enum  xtd::net::sockets::io_control_code : uint64 {
  xtd::net::sockets::io_control_code::enable_circular_queuing = 671088642ul,
  xtd::net::sockets::io_control_code::flush = 671088644ul,
  xtd::net::sockets::io_control_code::address_list_change = 671088663ul,
  xtd::net::sockets::io_control_code::data_to_read = 1074030207ul,
  xtd::net::sockets::io_control_code::oob_data_read = 1074033415ul,
  xtd::net::sockets::io_control_code::get_broadcast_address = 1207959557ul,
  xtd::net::sockets::io_control_code::address_list_query = 1207959574ul,
  xtd::net::sockets::io_control_code::query_target_pnp_handle = 1207959576ul,
  xtd::net::sockets::io_control_code::async_io = 2147772029ul,
  xtd::net::sockets::io_control_code::non_blocking_io = 2147772030ul,
  xtd::net::sockets::io_control_code::associate_handle = 2281701377ul,
  xtd::net::sockets::io_control_code::multipoint_loopback = 2281701385ul,
  xtd::net::sockets::io_control_code::multicast_scope = 2281701386ul,
  xtd::net::sockets::io_control_code::set_qos = 2281701387ul,
  xtd::net::sockets::io_control_code::set_group_qos = 2281701388ul,
  xtd::net::sockets::io_control_code::routing_interface_change = 2281701397ul,
  xtd::net::sockets::io_control_code::namespace_change = 2281701401ul,
  xtd::net::sockets::io_control_code::receive_all = 2550136833ul,
  xtd::net::sockets::io_control_code::receive_all_multicast = 2550136834ul,
  xtd::net::sockets::io_control_code::receive_all_igmp_multicast = 2550136835ul,
  xtd::net::sockets::io_control_code::keep_alive_values = 2550136836ul,
  xtd::net::sockets::io_control_code::absorb_router_alert = 2550136837ul,
  xtd::net::sockets::io_control_code::unicast_interface = 2550136838ul,
  xtd::net::sockets::io_control_code::limit_broadcasts = 2550136839ul,
  xtd::net::sockets::io_control_code::bind_to_interface = 2550136840ul,
  xtd::net::sockets::io_control_code::multicast_interface = 2550136841ul,
  xtd::net::sockets::io_control_code::add_multicast_group_on_interface = 2550136842ul,
  xtd::net::sockets::io_control_code::delete_multicast_group_from_interface = 2550136843ul,
  xtd::net::sockets::io_control_code::get_extension_function_pointer = 3355443206ul,
  xtd::net::sockets::io_control_code::get_qos = 3355443207ul,
  xtd::net::sockets::io_control_code::get_group_qos = 3355443208ul,
  xtd::net::sockets::io_control_code::translate_handle = 3355443213ul,
  xtd::net::sockets::io_control_code::routing_interface_query = 3355443220ul,
  xtd::net::sockets::io_control_code::address_list_sort = 3355443225ul
}
 Specifies the IO control codes supported by the xtd::net::sockets::socket::io_control method. More...
 
enum  xtd::net::sockets::ip_protection_level {
  xtd::net::sockets::ip_protection_level::unspecified = -1,
  xtd::net::sockets::ip_protection_level::unrestricted = 10,
  xtd::net::sockets::ip_protection_level::edge_restricted = 20,
  xtd::net::sockets::ip_protection_level::restricted = 30
}
 A value that enables restriction of an IPv6 socket to a specified scope, such as addresses with the same link local or site local prefix. More...
 
enum  xtd::language_id {
  xtd::language_id::unknown = -1,
  xtd::language_id::cpp_pre98 = 0,
  xtd::language_id::cpp98,
  xtd::language_id::cpp11,
  xtd::language_id::cpp14,
  xtd::language_id::cpp17,
  xtd::language_id::cpp20,
  xtd::language_id::cpp23
}
 Identifies the c++ language used by assembly. More...
 
enum  xtd::month_of_year {
  xtd::month_of_year::january = 1,
  xtd::month_of_year::february,
  xtd::month_of_year::march,
  xtd::month_of_year::april,
  xtd::month_of_year::may,
  xtd::month_of_year::june,
  xtd::month_of_year::july,
  xtd::month_of_year::august,
  xtd::month_of_year::september,
  xtd::month_of_year::october,
  xtd::month_of_year::november,
  xtd::month_of_year::december
}
 Specifies the month of the year. More...
 
enum  xtd::number_styles {
  xtd::number_styles::none = 0x0,
  xtd::number_styles::allow_leading_white = 0b1,
  xtd::number_styles::allow_trailing_white = 0b10,
  xtd::number_styles::allow_leading_sign = 0b100,
  xtd::number_styles::allow_trailing_sign = 0b1000,
  xtd::number_styles::allow_parentheses = 0b10000,
  xtd::number_styles::allow_decimal_point = 0b100000,
  xtd::number_styles::allow_thousands = 0b1000000,
  xtd::number_styles::allow_exponent = 0b10000000,
  xtd::number_styles::allow_currency_symbol = 0b100000000,
  xtd::number_styles::allow_hex_specifier = 0b1000000000,
  xtd::number_styles::allow_binary_specifier = 0b10000000000,
  xtd::number_styles::allow_octal_specifier = 0b100000000000,
  xtd::number_styles::integer = allow_leading_white + allow_trailing_white + allow_leading_sign,
  xtd::number_styles::number = allow_leading_white + allow_trailing_white + allow_leading_sign + allow_trailing_sign + allow_decimal_point + allow_thousands,
  xtd::number_styles::fixed_point = allow_leading_white + allow_trailing_white + allow_leading_sign + allow_decimal_point + allow_exponent,
  xtd::number_styles::currency = allow_leading_white + allow_trailing_white + allow_leading_sign + allow_trailing_sign + allow_parentheses + allow_decimal_point + allow_thousands + allow_currency_symbol,
  xtd::number_styles::any = allow_leading_white + allow_trailing_white + allow_leading_sign + allow_trailing_sign + allow_parentheses + allow_decimal_point + allow_thousands + allow_exponent + allow_currency_symbol,
  xtd::number_styles::hex_number = allow_leading_white + allow_trailing_white + allow_hex_specifier,
  xtd::number_styles::binary_number = allow_leading_white + allow_trailing_white + allow_binary_specifier,
  xtd::number_styles::octal_number = allow_leading_white + allow_trailing_white + allow_octal_specifier
}
 Determines the styles permitted in numeric string arguments that are passed to the xtd::parse and xtd::try_parse methods of the integral and floating-point numeric types. This enumeration has a flags attribute that allows a bitwise combination of its member values. More...
 
enum  xtd::platform_id {
  xtd::platform_id::unknown = -1,
  xtd::platform_id::win32s,
  xtd::platform_id::win32_windows,
  xtd::platform_id::win32_nt,
  xtd::platform_id::win_ce,
  xtd::platform_id::unix,
  xtd::platform_id::xbox,
  xtd::platform_id::macos,
  xtd::platform_id::ios,
  xtd::platform_id::android,
  xtd::platform_id::linux,
  xtd::platform_id::tvos,
  xtd::platform_id::watchos,
  xtd::platform_id::other
}
 Identifies the operating system, or platform, supported by an assembly. More...
 
enum  xtd::diagnostics::process_priority_class {
  xtd::diagnostics::process_priority_class::normal = 0x20,
  xtd::diagnostics::process_priority_class::idle = 0x40,
  xtd::diagnostics::process_priority_class::high = 0x80,
  xtd::diagnostics::process_priority_class::real_time = 0x100,
  xtd::diagnostics::process_priority_class::below_normal = 0x4000,
  xtd::diagnostics::process_priority_class::above_normal = 0x8000
}
 Indicates the priority that the system associates with a process. This value, together with the priority value of each thread of the process, determines each thread's base priority level. More...
 
enum  xtd::diagnostics::process_window_style {
  xtd::diagnostics::process_window_style::normal = 0,
  xtd::diagnostics::process_window_style::hidden = 1,
  xtd::diagnostics::process_window_style::minimized = 2,
  xtd::diagnostics::process_window_style::maximized = 3
}
 Specified how a new window should appear when the system starts a process. More...
 
enum  xtd::net::sockets::protocol_family {
  xtd::net::sockets::protocol_family::unknown = -1,
  xtd::net::sockets::protocol_family::unspecified = 0,
  xtd::net::sockets::protocol_family::unix = 1,
  xtd::net::sockets::protocol_family::inter_network = 2,
  xtd::net::sockets::protocol_family::imp_link = 3,
  xtd::net::sockets::protocol_family::pup = 4,
  xtd::net::sockets::protocol_family::chaos = 5,
  xtd::net::sockets::protocol_family::ns = 6,
  xtd::net::sockets::protocol_family::ipx = 6,
  xtd::net::sockets::protocol_family::iso = 7,
  xtd::net::sockets::protocol_family::osi = 7,
  xtd::net::sockets::protocol_family::ecma = 8,
  xtd::net::sockets::protocol_family::data_kit = 9,
  xtd::net::sockets::protocol_family::ccitt = 10,
  xtd::net::sockets::protocol_family::sna = 11,
  xtd::net::sockets::protocol_family::dec_net = 12,
  xtd::net::sockets::protocol_family::data_link = 13,
  xtd::net::sockets::protocol_family::lat = 14,
  xtd::net::sockets::protocol_family::hyper_channel = 15,
  xtd::net::sockets::protocol_family::apple_talk = 16,
  xtd::net::sockets::protocol_family::net_bios = 17,
  xtd::net::sockets::protocol_family::voice_view = 18,
  xtd::net::sockets::protocol_family::fire_fox = 19,
  xtd::net::sockets::protocol_family::banyan = 21,
  xtd::net::sockets::protocol_family::atm = 22,
  xtd::net::sockets::protocol_family::inter_network_v6 = 23,
  xtd::net::sockets::protocol_family::cluster = 24,
  xtd::net::sockets::protocol_family::ieee12844 = 25,
  xtd::net::sockets::protocol_family::irda = 26,
  xtd::net::sockets::protocol_family::network_designers = 28,
  xtd::net::sockets::protocol_family::max = 29
}
 Specifies the type of protocol that an instance of the xtd::net::sockets::socket class can use. More...
 
enum  xtd::net::sockets::protocol_type {
  xtd::net::sockets::protocol_type::unknown = -1,
  xtd::net::sockets::protocol_type::ip_v6_hop_by_hop_options = 0,
  xtd::net::sockets::protocol_type::unspecified = 0,
  xtd::net::sockets::protocol_type::ip = 0,
  xtd::net::sockets::protocol_type::icmp = 1,
  xtd::net::sockets::protocol_type::igmp = 2,
  xtd::net::sockets::protocol_type::ggp = 3,
  xtd::net::sockets::protocol_type::ip_v4 = 4,
  xtd::net::sockets::protocol_type::tcp = 6,
  xtd::net::sockets::protocol_type::pup = 12,
  xtd::net::sockets::protocol_type::udp = 17,
  xtd::net::sockets::protocol_type::idp = 22,
  xtd::net::sockets::protocol_type::ip_v6 = 41,
  xtd::net::sockets::protocol_type::ip_v6_routing_header = 43,
  xtd::net::sockets::protocol_type::ip_v6_fragment_header = 44,
  xtd::net::sockets::protocol_type::ip_sec_encapsulating_security_payload = 50,
  xtd::net::sockets::protocol_type::ip_sec_authentication_header = 51,
  xtd::net::sockets::protocol_type::icmp_v6 = 58,
  xtd::net::sockets::protocol_type::ip_v6_no_next_header = 59,
  xtd::net::sockets::protocol_type::ip_v6_destination_options = 60,
  xtd::net::sockets::protocol_type::nd = 77,
  xtd::net::sockets::protocol_type::raw = 255,
  xtd::net::sockets::protocol_type::ipx = 1000,
  xtd::net::sockets::protocol_type::spx = 1256,
  xtd::net::sockets::protocol_type::spx_2 = 1257
}
 Specifies the protocols that the xtd::net::sockets::socket class supports. More...
 
enum  xtd::io::search_option {
  xtd::io::search_option::top_directory_only = 0,
  xtd::io::search_option::all_directories = 1
}
 Specifies whether to search the current directory, or the current directory and all subdirectories. More...
 
enum  xtd::net::sockets::select_mode {
  xtd::net::sockets::select_mode::select_read = 0,
  xtd::net::sockets::select_mode::select_write = 1,
  xtd::net::sockets::select_mode::select_error = 2
}
 Defines the polling modes for the xtd::net::sockets::socket::poll method. More...
 
enum  xtd::signal {
  xtd::signal::abnormal_termination = SIGABRT,
  xtd::signal::floating_point_exception = SIGFPE,
  xtd::signal::illegal_instruction = SIGILL,
  xtd::signal::interrupt = SIGINT,
  xtd::signal::segmentation_violation = SIGSEGV,
  xtd::signal::software_termination = SIGTERM
}
 Specifies signals that can interrupt the current process. More...
 
enum  xtd::net::sockets::socket_async_operation {
  xtd::net::sockets::socket_async_operation::none = 0,
  xtd::net::sockets::socket_async_operation::accept = 1,
  xtd::net::sockets::socket_async_operation::connect = 2,
  xtd::net::sockets::socket_async_operation::disconnect = 3,
  xtd::net::sockets::socket_async_operation::receive = 4,
  xtd::net::sockets::socket_async_operation::receive_from = 5,
  xtd::net::sockets::socket_async_operation::receive_message_from = 6,
  xtd::net::sockets::socket_async_operation::send = 7,
  xtd::net::sockets::socket_async_operation::send_packets = 8,
  xtd::net::sockets::socket_async_operation::send_to = 9
}
 The type of asynchronous socket operation most recently performed with this context object. More...
 
enum  xtd::net::sockets::socket_error {
  xtd::net::sockets::socket_error::sock_error = -1,
  xtd::net::sockets::socket_error::success = 0,
  xtd::net::sockets::socket_error::operation_aborted = 995,
  xtd::net::sockets::socket_error::io_pending = 997,
  xtd::net::sockets::socket_error::interrupted = 10004,
  xtd::net::sockets::socket_error::access_denied = 10013,
  xtd::net::sockets::socket_error::fault = 10014,
  xtd::net::sockets::socket_error::invalid_argument = 10022,
  xtd::net::sockets::socket_error::too_many_open_sockets = 10024,
  xtd::net::sockets::socket_error::would_block = 10035,
  xtd::net::sockets::socket_error::in_progress = 10036,
  xtd::net::sockets::socket_error::already_in_progress = 10037,
  xtd::net::sockets::socket_error::not_socket = 10038,
  xtd::net::sockets::socket_error::destination_address_required = 10039,
  xtd::net::sockets::socket_error::message_size = 10040,
  xtd::net::sockets::socket_error::protocol_type = 10041,
  xtd::net::sockets::socket_error::protocol_option = 10042,
  xtd::net::sockets::socket_error::protocol_not_supported = 10043,
  xtd::net::sockets::socket_error::socket_not_supported = 10044,
  xtd::net::sockets::socket_error::operation_not_supported = 10045,
  xtd::net::sockets::socket_error::protocol_family_not_supported = 10046,
  xtd::net::sockets::socket_error::address_family_not_supported = 10047,
  xtd::net::sockets::socket_error::address_already_in_use = 10048,
  xtd::net::sockets::socket_error::address_not_available = 10049,
  xtd::net::sockets::socket_error::network_down = 10050,
  xtd::net::sockets::socket_error::network_unreachable = 10051,
  xtd::net::sockets::socket_error::network_reset = 10052,
  xtd::net::sockets::socket_error::connection_aborted = 10053,
  xtd::net::sockets::socket_error::connection_reset = 10054,
  xtd::net::sockets::socket_error::no_buffer_space_available = 10055,
  xtd::net::sockets::socket_error::is_connected = 10056,
  xtd::net::sockets::socket_error::not_connected = 10057,
  xtd::net::sockets::socket_error::shutdown = 10058,
  xtd::net::sockets::socket_error::timed_out = 10060,
  xtd::net::sockets::socket_error::connection_refused = 10061,
  xtd::net::sockets::socket_error::host_down = 10064,
  xtd::net::sockets::socket_error::host_unreachable = 10065,
  xtd::net::sockets::socket_error::process_limit = 10067,
  xtd::net::sockets::socket_error::system_not_ready = 10091,
  xtd::net::sockets::socket_error::version_not_supported = 10092,
  xtd::net::sockets::socket_error::not_initialized = 10093,
  xtd::net::sockets::socket_error::disconnecting = 10101,
  xtd::net::sockets::socket_error::type_not_found = 10109,
  xtd::net::sockets::socket_error::host_not_found = 11001,
  xtd::net::sockets::socket_error::try_again = 11002,
  xtd::net::sockets::socket_error::no_recovery = 11003,
  xtd::net::sockets::socket_error::no_data = 11004
}
 Defines error codes for the xtd::net::sockets::socket class. More...
 
enum  xtd::net::sockets::socket_flags {
  xtd::net::sockets::socket_flags::none = 0x0000,
  xtd::net::sockets::socket_flags::out_of_band = 0x0001,
  xtd::net::sockets::socket_flags::peek = 0x0002,
  xtd::net::sockets::socket_flags::dont_route = 0x0004,
  xtd::net::sockets::socket_flags::max_io_vector_length = 0x0010,
  xtd::net::sockets::socket_flags::truncated = 0x0100,
  xtd::net::sockets::socket_flags::control_data_truncated = 0x0200,
  xtd::net::sockets::socket_flags::broadcast = 0x0400,
  xtd::net::sockets::socket_flags::multicast = 0x0800,
  xtd::net::sockets::socket_flags::partial = 0x8000
}
 Specifies socket send and receive behaviors. This enumeration has a flags attribute that allows a bitwise combination of its member values. More...
 
enum  xtd::net::sockets::socket_information_options {
  xtd::net::sockets::socket_information_options::none = 0x00,
  xtd::net::sockets::socket_information_options::non_blocking = 0x01,
  xtd::net::sockets::socket_information_options::connected = 0x02,
  xtd::net::sockets::socket_information_options::listening = 0x04,
  xtd::net::sockets::socket_information_options::use_only_overlapped_io = 0x08
}
 Describes states for a xtd::net::sockets::socket. This enumeration has a flags attribute that allows a bitwise combination of its member values. More...
 
enum  xtd::net::sockets::socket_option_level {
  xtd::net::sockets::socket_option_level::socket = 65535,
  xtd::net::sockets::socket_option_level::ip = 0,
  xtd::net::sockets::socket_option_level::ip_v6 = 41,
  xtd::net::sockets::socket_option_level::tcp = 6,
  xtd::net::sockets::socket_option_level::udp = 17
}
 Defines socket option levels for the xtd::net::sockets::socket::set_socket_option and xtd::net::sockets::socket::get_socket_option methods. More...
 
enum  xtd::net::sockets::socket_option_name {
  xtd::net::sockets::socket_option_name::debug = 1,
  xtd::net::sockets::socket_option_name::accept_connection = 2,
  xtd::net::sockets::socket_option_name::reuse_address = 4,
  xtd::net::sockets::socket_option_name::keep_alive = 8,
  xtd::net::sockets::socket_option_name::dont_route = 16,
  xtd::net::sockets::socket_option_name::broadcast = 32,
  xtd::net::sockets::socket_option_name::use_loopback = 64,
  xtd::net::sockets::socket_option_name::linger = 128,
  xtd::net::sockets::socket_option_name::out_of_band_inline = 256,
  xtd::net::sockets::socket_option_name::dont_linger = -129,
  xtd::net::sockets::socket_option_name::exclusive_address_use = -5,
  xtd::net::sockets::socket_option_name::send_buffer = 4097,
  xtd::net::sockets::socket_option_name::receive_buffer = 4098,
  xtd::net::sockets::socket_option_name::send_low_water = 4099,
  xtd::net::sockets::socket_option_name::receive_low_water = 4100,
  xtd::net::sockets::socket_option_name::send_timeout = 4101,
  xtd::net::sockets::socket_option_name::receive_timeout = 4102,
  xtd::net::sockets::socket_option_name::error = 4103,
  xtd::net::sockets::socket_option_name::type = 4104,
  xtd::net::sockets::socket_option_name::max_connections = 2147483647,
  xtd::net::sockets::socket_option_name::ip_options = 1,
  xtd::net::sockets::socket_option_name::header_included = 2,
  xtd::net::sockets::socket_option_name::type_of_service = 3,
  xtd::net::sockets::socket_option_name::ip_time_to_live = 4,
  xtd::net::sockets::socket_option_name::multicast_interface = 9,
  xtd::net::sockets::socket_option_name::multicast_time_to_live = 10,
  xtd::net::sockets::socket_option_name::multicast_loopback = 11,
  xtd::net::sockets::socket_option_name::add_membership = 12,
  xtd::net::sockets::socket_option_name::drop_membership = 13,
  xtd::net::sockets::socket_option_name::dont_fragment = 14,
  xtd::net::sockets::socket_option_name::add_source_membership = 15,
  xtd::net::sockets::socket_option_name::drop_source_membership = 16,
  xtd::net::sockets::socket_option_name::block_source = 17,
  xtd::net::sockets::socket_option_name::unblock_source = 18,
  xtd::net::sockets::socket_option_name::packet_information = 19,
  xtd::net::sockets::socket_option_name::hop_limit = 21,
  xtd::net::sockets::socket_option_name::ip_protection_level = 23,
  xtd::net::sockets::socket_option_name::ip_v6_only = 27,
  xtd::net::sockets::socket_option_name::no_delay = 1,
  xtd::net::sockets::socket_option_name::bsd_urgent = 2,
  xtd::net::sockets::socket_option_name::expedited = 2,
  xtd::net::sockets::socket_option_name::no_checksum = 1,
  xtd::net::sockets::socket_option_name::checksum_coverage = 20,
  xtd::net::sockets::socket_option_name::update_accept_context = 28683,
  xtd::net::sockets::socket_option_name::update_connect_context = 28688
}
 Defines configuration option names. More...
 
enum  xtd::net::sockets::socket_shutdown {
  xtd::net::sockets::socket_shutdown::receive = 0,
  xtd::net::sockets::socket_shutdown::send = 1,
  xtd::net::sockets::socket_shutdown::both = 2
}
 Defines constants that are used by the xtd::net::sockets::socket::shutdown method. More...
 
enum  xtd::net::sockets::socket_type {
  xtd::net::sockets::socket_type::unknown = -1,
  xtd::net::sockets::socket_type::stream = 1,
  xtd::net::sockets::socket_type::dgram = 2,
  xtd::net::sockets::socket_type::raw = 3,
  xtd::net::sockets::socket_type::rdm = 4,
  xtd::net::sockets::socket_type::seqpacket = 5
}
 Specifies the type of socket that an instance of the xtd::net::sockets::socket class represents. More...
 
enum  xtd::diagnostics::source_levels {
  xtd::diagnostics::source_levels::off = 0,
  xtd::diagnostics::source_levels::critical = 0b1,
  xtd::diagnostics::source_levels::error = 0b11,
  xtd::diagnostics::source_levels::warning = 0b111,
  xtd::diagnostics::source_levels::information = 0b1111,
  xtd::diagnostics::source_levels::verbose = 0b11111,
  xtd::diagnostics::source_levels::activity_tracing = 0b1111111100000000,
  xtd::diagnostics::source_levels::all = 0b1111111111111111
}
 Specifies the levels of trace messages filtered by the source switch and event type filter. This enumeration has a flags attribute that allows a bitwise combination of its member values. More...
 
enum  xtd::string_comparison {
  xtd::string_comparison::ordinal,
  xtd::string_comparison::ordinal_ignore_case
}
 Specifies the culture, case, and sort rules to be used by certain overloads of the xtd::ustring::compare method. More...
 
enum  xtd::string_split_options {
  xtd::string_split_options::none,
  xtd::string_split_options::remove_empty_entries
}
 Specifies whether applicable xtd::ustring::split method overloads include or omit empty substrings from the return value. More...
 
enum  xtd::speech::synthesis::synthesizer_state {
  xtd::speech::synthesis::synthesizer_state::ready = 0,
  xtd::speech::synthesis::synthesizer_state::speaking = 1,
  xtd::speech::synthesis::synthesizer_state::pause = 2
}
 Enumerates values for the state of the xtd::speech::synthesis::speech_synthesizer. More...
 
enum  xtd::target_id {
  xtd::target_id::unknown = __XTD_TARGET_ID_UNKNOWN__,
  xtd::target_id::console_application = __XTD_TARGET_ID_CONSOLE_APPLICATION__,
  xtd::target_id::gui_application = __XTD_TARGET_ID_GUI_APPLICATION__,
  xtd::target_id::test_application = __XTD_TARGET_ID_TEST_APPLICATION__,
  xtd::target_id::interface_library = __XTD_TARGET_ID_INTERFACE_LIBRARY__,
  xtd::target_id::module_library = __XTD_TARGET_ID_MODULE_LIBRARY__,
  xtd::target_id::shared_library = __XTD_TARGET_ID_SHARED_LIBRARY__,
  xtd::target_id::static_library = __XTD_TARGET_ID_STATIC_LIBRARY__,
  xtd::target_id::custom_target = __XTD_TARGET_ID_CUSTOM_TARGET__
}
 Identifies the target, supported by an assembly. More...
 
enum  xtd::diagnostics::trace_event_type {
  xtd::diagnostics::trace_event_type::critical = 0b1,
  xtd::diagnostics::trace_event_type::error = 0b10,
  xtd::diagnostics::trace_event_type::warning = 0b100,
  xtd::diagnostics::trace_event_type::information = 0b1000,
  xtd::diagnostics::trace_event_type::verbose = 0b10000,
  xtd::diagnostics::trace_event_type::start = 0b100000000,
  xtd::diagnostics::trace_event_type::stop = 0b1000000000,
  xtd::diagnostics::trace_event_type::suspend = 0b10000000000,
  xtd::diagnostics::trace_event_type::resume = 0b100000000000,
  xtd::diagnostics::trace_event_type::transfer = 0b1000000000000
}
 Identifies the type of event that has caused the trace. More...
 
enum  xtd::diagnostics::trace_level {
  xtd::diagnostics::trace_level::off = 0,
  xtd::diagnostics::trace_level::error = 1,
  xtd::diagnostics::trace_level::warning = 2,
  xtd::diagnostics::trace_level::info = 3,
  xtd::diagnostics::trace_level::verbose = 4
}
 Specifies what messages to output for the debug, trace and trace_switch classes. More...
 
enum  xtd::net::sockets::transmit_file_options {
  xtd::net::sockets::transmit_file_options::use_default_worker_thread = 0,
  xtd::net::sockets::transmit_file_options::disconnect = 0b1,
  xtd::net::sockets::transmit_file_options::reuse_socket = 0b10,
  xtd::net::sockets::transmit_file_options::write_behind = 0b100,
  xtd::net::sockets::transmit_file_options::use_system_thread = 0b1000,
  xtd::net::sockets::transmit_file_options::use_kernel_apc = 0b100000
}
 The TransmitFileOptions enumeration defines values used in file transfer requests. More...
 
enum  xtd::uri_components {
  xtd::uri_components::none = 0x00000000,
  xtd::uri_components::scheme = 0x00000001,
  xtd::uri_components::user_info = 0x00000002,
  xtd::uri_components::host = 0x00000004,
  xtd::uri_components::port = 0x000000008,
  xtd::uri_components::path = 0x00000010,
  xtd::uri_components::query = 0x00000020,
  xtd::uri_components::fragment = 0x00000040,
  xtd::uri_components::strong_port = 0x00000080,
  xtd::uri_components::keep_delimiter = 0x40000000,
  xtd::uri_components::host_and_port = 0x00000084,
  xtd::uri_components::strong_authority = 0x00000086,
  xtd::uri_components::absolute_uri = 0x0000007F,
  xtd::uri_components::path_and_query = 0x00000030,
  xtd::uri_components::http_request_url = 0x0000003D,
  xtd::uri_components::scheme_and_server = 0x0000000D,
  xtd::uri_components::serialization_info_string = 0x08000000
}
 This enumeration has a Flags attribute that allows a bitwise combination of its member values. More...
 
enum  xtd::uri_format {
  xtd::uri_format::safe_unescaped = 0,
  xtd::uri_format::unescaped = 1,
  xtd::uri_format::uri_escaped = 2
}
 Controls how URI information is escaped. More...
 
enum  xtd::uri_host_name_type {
  xtd::uri_host_name_type::unknown = 0,
  xtd::uri_host_name_type::basic = 1,
  xtd::uri_host_name_type::dns = 2,
  xtd::uri_host_name_type::ip_v4 = 3,
  xtd::uri_host_name_type::ip_v6 = 4
}
 Defines host name types for the xtd::uri::check_host_name method. More...
 
enum  xtd::uri_kind {
  xtd::uri_kind::relative_or_absolute = 0,
  xtd::uri_kind::absolute = 1,
  xtd::uri_kind::relative = 2
}
 Defines the kinds of Uris for the xtd::uri::is_well_formed_uri_string and several xtd::uri methods. More...
 
enum  xtd::uri_partial {
  xtd::uri_partial::scheme = 0,
  xtd::uri_partial::authority = 1,
  xtd::uri_partial::path = 2,
  xtd::uri_partial::query = 3
}
 Defines the parts of a URI for the xtd::uri::get_left_part method. More...
 

Functions

template<typename new_type_t >
new_type_t xtd::as (std::any value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (bool value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (xtd::byte value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (char value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (char8 value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (char16 value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (char32 value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (wchar value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (decimal value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (double value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (float value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (int16 value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (int32 value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (int64 value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (slong value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (sbyte value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (uint16 value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (uint32 value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (uint64 value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (xtd::ulong value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (xtd::ustring &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (const std::string &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (std::string &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (const std::u8string &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (std::u8string &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (const std::u16string &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (std::u16string &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (const std::u32string &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (std::u32string &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (const std::wstring &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (std::wstring &value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (const char *value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (char *value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (const char8 *value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (char8 *value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (const char16 *value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (char16 *value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (const char32 *value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (char32 *value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (const wchar *value)
 Casts a type into another type. More...
 
template<typename new_type_t >
new_type_t xtd::as (wchar *value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
const new_type_t & xtd::as (const current_type_t &value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
new_type_t & xtd::as (current_type_t &value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
const new_type_t * xtd::as (const current_type_t *value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
new_type_t * xtd::as (current_type_t *value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
std::unique_ptr< new_type_t > xtd::as (std::unique_ptr< current_type_t > &value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
std::unique_ptr< new_type_t > xtd::as (std::unique_ptr< current_type_t > &&value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
std::shared_ptr< new_type_t > xtd::as (const std::shared_ptr< current_type_t > &value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
std::shared_ptr< new_type_t > xtd::as (std::shared_ptr< current_type_t > &value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
std::shared_ptr< new_type_t > xtd::as (std::shared_ptr< current_type_t > &&value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (std::any value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (bool value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (xtd::byte value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (char value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (char8 value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (char16 value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (char32 value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (wchar value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (decimal value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (double value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (float value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (int16 value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (int32 value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (int64 value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (slong value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (sbyte value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (uint16 value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (uint32 value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (uint64 value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (xtd::ulong value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (const std::string &value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (const char *value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (char *value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (const char8 *value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (char8 *value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (const char16 *value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (char16 *value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (const char32 *value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (char32 *value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (const wchar *value)
 Casts a type into another type. More...
 
template<>
bool xtd::as< bool > (wchar *value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (std::any value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (bool value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (xtd::byte value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (char value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (char8 value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (char16 value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (char32 value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (wchar value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (decimal value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (double value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (float value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (int16 value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (int32 value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (int64 value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (slong value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (sbyte value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (uint16 value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (uint32 value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (uint64 value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (xtd::ulong value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (const std::string &value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (const char *value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (char *value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (const char8 *value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (char8 *value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (const char16 *value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (char16 *value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (const char32 *value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (char32 *value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (const wchar *value)
 Casts a type into another type. More...
 
template<>
char xtd::as< char > (wchar *value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (std::any value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (bool value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (xtd::byte value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (char value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (char8 value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (char16 value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (char32 value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (wchar value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (decimal value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (double value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (float value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (int16 value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (int32 value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (int64 value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (slong value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (sbyte value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (uint16 value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (uint32 value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (uint64 value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (xtd::ulong value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (const std::string &value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (const char *value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (char *value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (const char8 *value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (char8 *value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (const char16 *value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (char16 *value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (const char32 *value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (char32 *value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (const wchar *value)
 Casts a type into another type. More...
 
template<>
char16 xtd::as< char16 > (wchar *value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (std::any value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (bool value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (xtd::byte value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (char value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (char8 value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (char16 value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (char32 value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (wchar value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (decimal value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (double value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (float value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (int16 value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (int32 value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (int64 value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (slong value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (sbyte value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (uint16 value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (uint32 value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (uint64 value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (xtd::ulong value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (const std::string &value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (const char *value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (char *value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (const char8 *value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (char8 *value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (const char16 *value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (char16 *value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (const char32 *value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (char32 *value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (const wchar *value)
 Casts a type into another type. More...
 
template<>
char32 xtd::as< char32 > (wchar *value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (std::any value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (bool value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (xtd::byte value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (char value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (char8 value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (char16 value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (char32 value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (wchar value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (decimal value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (double value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (float value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (int16 value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (int32 value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (int64 value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (slong value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (sbyte value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (uint16 value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (uint32 value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (uint64 value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (xtd::ulong value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (const std::string &value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (const char *value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (char *value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (const char8 *value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (char8 *value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (const char16 *value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (char16 *value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (const char32 *value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (char32 *value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (const wchar *value)
 Casts a type into another type. More...
 
template<>
char8 xtd::as< char8 > (wchar *value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (std::any value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (bool value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (xtd::byte value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (char value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (char8 value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (char16 value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (char32 value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (wchar value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (decimal value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (double value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (float value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (int16 value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (int32 value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (int64 value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (slong value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (sbyte value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (uint16 value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (uint32 value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (uint64 value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (xtd::ulong value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (const std::string &value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (const char *value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (char *value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (const char8 *value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (char8 *value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (const char16 *value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (char16 *value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (const char32 *value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (char32 *value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (const wchar *value)
 Casts a type into another type. More...
 
template<>
decimal xtd::as< decimal > (wchar *value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (std::any value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (bool value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (xtd::byte value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (char value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (char8 value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (char16 value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (char32 value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (wchar value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (decimal value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (double value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (float value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (int16 value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (int32 value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (int64 value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (slong value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (sbyte value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (uint16 value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (uint32 value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (uint64 value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (xtd::ulong value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (const std::string &value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (const char *value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (char *value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (const char8 *value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (char8 *value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (const char16 *value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (char16 *value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (const char32 *value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (char32 *value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (const wchar *value)
 Casts a type into another type. More...
 
template<>
double xtd::as< double > (wchar *value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (std::any value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (bool value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (xtd::byte value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (char value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (char8 value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (char16 value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (char32 value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (wchar value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (decimal value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (double value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (float value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (int16 value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (int32 value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (int64 value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (slong value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (sbyte value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (uint16 value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (uint32 value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (uint64 value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (xtd::ulong value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (const std::string &value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (const char *value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (char *value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (const char8 *value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (char8 *value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (const char16 *value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (char16 *value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (const char32 *value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (char32 *value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (const wchar *value)
 Casts a type into another type. More...
 
template<>
float xtd::as< float > (wchar *value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (std::any value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (bool value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (xtd::byte value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (char value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (char8 value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (char16 value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (char32 value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (wchar value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (decimal value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (double value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (float value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (int16 value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (int32 value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (int64 value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (slong value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (sbyte value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (uint16 value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (uint32 value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (uint64 value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (xtd::ulong value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (const xtd::ustring &value, xtd::byte from_base)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (const std::string &value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (const char *value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (char *value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (const char8 *value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (char8 *value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (const char16 *value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (char16 *value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (const char32 *value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (char32 *value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (const wchar *value)
 Casts a type into another type. More...
 
template<>
int16 xtd::as< int16 > (wchar *value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (std::any value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (bool value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (xtd::byte value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (char value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (char8 value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (char16 value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (char32 value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (wchar value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (decimal value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (double value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (float value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (int16 value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (int32 value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (int64 value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (slong value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (sbyte value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (uint16 value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (uint32 value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (uint64 value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (xtd::ulong value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (const xtd::ustring &value, xtd::byte from_base)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (const std::string &value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (const char *value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (char *value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (const char8 *value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (char8 *value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (const char16 *value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (char16 *value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (const char32 *value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (char32 *value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (const wchar *value)
 Casts a type into another type. More...
 
template<>
int32 xtd::as< int32 > (wchar *value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (std::any value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (bool value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (xtd::byte value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (char value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (char8 value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (char16 value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (char32 value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (wchar value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (decimal value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (double value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (float value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (int16 value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (int32 value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (int64 value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (slong value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (sbyte value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (uint16 value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (uint32 value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (uint64 value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (xtd::ulong value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (const xtd::ustring &value, xtd::byte from_base)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (const std::string &value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (const char *value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (char *value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (const char8 *value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (char8 *value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (const char16 *value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (char16 *value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (const char32 *value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (char32 *value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (const wchar *value)
 Casts a type into another type. More...
 
template<>
int64 xtd::as< int64 > (wchar *value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (std::any value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (bool value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (xtd::byte value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (char value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (char8 value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (char16 value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (char32 value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (wchar value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (decimal value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (double value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (float value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (int16 value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (int32 value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (int64 value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (slong value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (sbyte value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (uint16 value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (uint32 value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (uint64 value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (xtd::ulong value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (const xtd::ustring &value, xtd::byte from_base)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (const std::string &value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (const char *value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (char *value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (const char8 *value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (char8 *value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (const char16 *value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (char16 *value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (const char32 *value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (char32 *value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (const wchar *value)
 Casts a type into another type. More...
 
template<>
sbyte xtd::as< sbyte > (wchar *value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (std::any value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (bool value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (xtd::byte value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (char value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (char8 value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (char16 value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (char32 value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (wchar value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (decimal value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (double value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (float value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (int16 value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (int32 value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (int64 value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (slong value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (sbyte value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (uint16 value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (uint32 value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (uint64 value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (xtd::ulong value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (const xtd::ustring &value, xtd::byte from_base)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (const std::string &value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (const char *value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (char *value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (const char8 *value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (char8 *value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (const char16 *value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (char16 *value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (const char32 *value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (char32 *value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (const wchar *value)
 Casts a type into another type. More...
 
template<>
slong xtd::as< slong > (wchar *value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (const std::string &value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (const char *value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (char *value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (std::u8string &value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (const char8 *value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (char8 *value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (std::u16string &value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (const char16 *value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (char16 *value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (std::u32string &value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (const char32 *value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (char32 *value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (std::wstring &value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (const wchar *value)
 Casts a type into another type. More...
 
template<>
std::string xtd::as< std::string > (wchar *value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (const std::string &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (std::string &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (const char *value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (char *value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (std::u8string &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (const char8 *value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (char8 *value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (std::u16string &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (const char16 *value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (char16 *value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (std::u32string &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (const char32 *value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (char32 *value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (std::wstring &value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (const wchar *value)
 Casts a type into another type. More...
 
template<>
std::u16string xtd::as< std::u16string > (wchar *value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (const std::string &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (std::string &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (const char *value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (char *value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (std::u8string &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (const char8 *value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (char8 *value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (std::u16string &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (const char16 *value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (char16 *value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (std::u32string &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (const char32 *value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (char32 *value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (std::wstring &value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (const wchar *value)
 Casts a type into another type. More...
 
template<>
std::u32string xtd::as< std::u32string > (wchar *value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (const std::string &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (std::string &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (const char *value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (char *value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (std::u8string &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (const char8 *value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (char8 *value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (std::u16string &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (const char16 *value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (char16 *value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (std::u32string &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (const char32 *value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (char32 *value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (std::wstring &value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (const wchar *value)
 Casts a type into another type. More...
 
template<>
std::u8string xtd::as< std::u8string > (wchar *value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (const std::string &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (std::string &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (const char *value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (char *value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (std::u8string &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (const char8 *value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (char8 *value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (std::u16string &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (const char16 *value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (char16 *value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (std::u32string &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (const char32 *value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (char32 *value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (std::wstring &value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (const wchar *value)
 Casts a type into another type. More...
 
template<>
std::wstring xtd::as< std::wstring > (wchar *value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (std::any value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (bool value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (xtd::byte value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (char value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (char8 value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (char16 value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (char32 value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (wchar value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (decimal value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (double value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (float value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (int16 value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (int32 value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (int64 value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (slong value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (sbyte value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (uint16 value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (uint32 value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (uint64 value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (xtd::ulong value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (const xtd::ustring &value, xtd::byte from_base)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (const std::string &value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (const char *value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (char *value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (const char8 *value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (char8 *value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (const char16 *value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (char16 *value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (const char32 *value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (char32 *value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (const wchar *value)
 Casts a type into another type. More...
 
template<>
uint16 xtd::as< uint16 > (wchar *value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (std::any value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (bool value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (xtd::byte value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (char value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (char8 value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (char16 value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (char32 value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (wchar value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (decimal value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (double value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (float value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (int16 value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (int32 value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (int64 value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (slong value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (sbyte value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (uint16 value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (uint32 value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (uint64 value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (xtd::ulong value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (const xtd::ustring &value, xtd::byte from_base)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (const std::string &value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (const char *value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (char *value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (const char8 *value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (char8 *value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (const char16 *value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (char16 *value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (const char32 *value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (char32 *value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (const wchar *value)
 Casts a type into another type. More...
 
template<>
uint32 xtd::as< uint32 > (wchar *value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (std::any value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (bool value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (xtd::byte value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (char value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (char8 value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (char16 value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (char32 value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (wchar value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (decimal value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (double value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (float value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (int16 value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (int32 value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (int64 value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (slong value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (sbyte value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (uint16 value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (uint32 value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (uint64 value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (xtd::ulong value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (const xtd::ustring &value, xtd::byte from_base)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (const std::string &value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (const char *value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (char *value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (const char8 *value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (char8 *value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (const char16 *value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (char16 *value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (const char32 *value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (char32 *value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (const wchar *value)
 Casts a type into another type. More...
 
template<>
uint64 xtd::as< uint64 > (wchar *value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (std::any value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (bool value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (xtd::byte value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (xtd::byte value, xtd::byte from_base)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (char value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (char8 value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (char16 value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (char32 value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (wchar value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (decimal value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (double value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (float value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (int16 value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (int16 value, xtd::byte from_base)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (int32 value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (int32 value, xtd::byte from_base)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (int64 value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (int64 value, xtd::byte from_base)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (slong value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (slong value, xtd::byte from_base)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (sbyte value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (sbyte value, xtd::byte from_base)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (uint16 value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (uint16 value, xtd::byte from_base)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (uint32 value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (uint32 value, xtd::byte from_base)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (uint64 value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (uint64 value, xtd::byte from_base)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (xtd::ulong value)
 Casts a type into another type. More...
 
template<>
ustring xtd::as< ustring > (xtd::ulong value, xtd::byte from_base)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (std::any value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (bool value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (xtd::byte value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (char value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (char8 value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (char16 value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (char32 value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (wchar value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (decimal value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (double value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (float value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (int16 value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (int32 value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (int64 value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (slong value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (sbyte value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (uint16 value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (uint32 value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (uint64 value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (xtd::ulong value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (const std::string &value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (const char *value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (char *value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (const char8 *value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (char8 *value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (const char16 *value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (char16 *value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (const char32 *value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (char32 *value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (const wchar *value)
 Casts a type into another type. More...
 
template<>
wchar xtd::as< wchar > (wchar *value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (std::any value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (bool value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (xtd::byte value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (char value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (char8 value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (char16 value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (char32 value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (wchar value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (decimal value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (double value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (float value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (int16 value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (int32 value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (int64 value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (slong value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (sbyte value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (uint16 value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (uint32 value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (uint64 value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (xtd::ulong value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (const xtd::ustring &value, xtd::byte from_base)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (const std::string &value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (const char *value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (char *value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (const char8 *value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (char8 *value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (const char16 *value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (char16 *value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (const char32 *value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (char32 *value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (const wchar *value)
 Casts a type into another type. More...
 
template<>
xtd::byte xtd::as< xtd::byte > (wchar *value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (std::any value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (bool value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (xtd::byte value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (char value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (char8 value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (char16 value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (char32 value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (wchar value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (decimal value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (double value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (float value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (int16 value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (int32 value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (int64 value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (slong value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (sbyte value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (uint16 value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (uint32 value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (uint64 value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (xtd::ulong value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const xtd::ustring &value, xtd::byte from_base)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const std::string &value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const char *value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (char *value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const char8 *value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (char8 *value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const char16 *value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (char16 *value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const char32 *value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (char32 *value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (const wchar *value)
 Casts a type into another type. More...
 
template<>
xtd::ulong xtd::as< xtd::ulong > (wchar *value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (const std::string &value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (std::string &value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (const char *value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (char *value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (const xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (xtd::ustring &value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (const std::u8string &value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (std::u8string &value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (const char8 *value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (char8 *value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (const std::u16string &value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (std::u16string &value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (const char16 *value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (char16 *value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (const std::u32string &value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (std::u32string &value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (const char32 *value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (char32 *value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (const std::wstring &value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (std::wstring &value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (const wchar *value)
 Casts a type into another type. More...
 
template<>
xtd::ustring xtd::as< xtd::ustring > (wchar *value)
 Casts a type into another type. More...
 
std::ostream xtd::cnull (nullptr)
 Provides a null std::ostream. More...
 
std::ostream xtd::ctrace (nullptr)
 Provides an std::ostream for xtd::diagnostics::trace. More...
 
template<typename type_t >
bool xtd::is (std::any value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<typename type_t , typename param_t >
bool xtd::is (const param_t *value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<typename type_t , typename param_t >
bool xtd::is (const param_t &value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<typename type_t , typename param_t >
bool xtd::is (param_t *value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<typename type_t , typename param_t >
bool xtd::is (param_t &value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<typename new_type_t , typename current_type_t >
bool xtd::is (std::shared_ptr< current_type_t > &value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< bool > (bool value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< decimal > (decimal value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< double > (double value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< float > (float value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< int16 > (int16 value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< int32 > (int32 value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< int64 > (int64 value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< sbyte > (sbyte value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< slong > (slong value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< std::any > (std::any value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< uint16 > (uint16 value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< uint32 > (uint32 value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< uint64 > (uint64 value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< xtd::byte > (xtd::byte value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<>
bool xtd::is< xtd::ulong > (xtd::ulong value)
 Checks if the result of an expression is compatible with a given type. More...
 
template<typename value_t >
value_t xtd::parse (const std::string &str)
 Convert a string into a type. More...
 
template<typename value_t >
value_t xtd::parse (const std::string &str, const std::locale &locale)
 Convert a string into a type. More...
 
template<typename value_t >
value_t xtd::parse (const std::string &str, const std::string &fmt)
 Convert a string into a type. More...
 
template<typename value_t >
value_t xtd::parse (const std::string &str, number_styles)
 Convert a string into a type. More...
 
template<typename value_t >
value_t xtd::parse (const std::string &str, number_styles, const std::locale &locale)
 Convert a string into a type. More...
 
template<typename value_t >
value_t xtd::parse (const std::wstring &str)
 Convert a string into a type. More...
 
template<typename value_t >
value_t xtd::parse (const std::u16string &str)
 Convert a string into a type. More...
 
template<typename value_t >
value_t xtd::parse (const std::u32string &str)
 Convert a string into a type. More...
 
template<>
bool xtd::parse< bool > (const std::string &str)
 Convert a string into a type. More...
 
template<>
char xtd::parse< char > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
char xtd::parse< char > (const std::string &str)
 Convert a string into a type. More...
 
template<>
double xtd::parse< double > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
double xtd::parse< double > (const std::string &str, number_styles styles, const std::locale &locale)
 Convert a string into a type. More...
 
template<>
double xtd::parse< double > (const std::string &str)
 Convert a string into a type. More...
 
template<>
float xtd::parse< float > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
float xtd::parse< float > (const std::string &str, number_styles styles, const std::locale &locale)
 Convert a string into a type. More...
 
template<>
float xtd::parse< float > (const std::string &str)
 Convert a string into a type. More...
 
template<>
int xtd::parse< int > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
int xtd::parse< int > (const std::string &str)
 Convert a string into a type. More...
 
template<>
long xtd::parse< long > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
long xtd::parse< long > (const std::string &str)
 Convert a string into a type. More...
 
template<>
long double xtd::parse< long double > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
long double xtd::parse< long double > (const std::string &str, number_styles styles, const std::locale &locale)
 Convert a string into a type. More...
 
template<>
long double xtd::parse< long double > (const std::string &str)
 Convert a string into a type. More...
 
template<>
long long xtd::parse< long long > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
long long xtd::parse< long long > (const std::string &str)
 Convert a string into a type. More...
 
template<>
short xtd::parse< short > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
short xtd::parse< short > (const std::string &str)
 Convert a string into a type. More...
 
template<>
std::string xtd::parse< std::string > (const std::string &str)
 Convert a string into a type. More...
 
template<>
unsigned char xtd::parse< unsigned char > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
unsigned char xtd::parse< unsigned char > (const std::string &str)
 Convert a string into a type. More...
 
template<>
unsigned int xtd::parse< unsigned int > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
unsigned int xtd::parse< unsigned int > (const std::string &str)
 Convert a string into a type. More...
 
template<>
unsigned long xtd::parse< unsigned long > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
unsigned long xtd::parse< unsigned long > (const std::string &str)
 Convert a string into a type. More...
 
template<>
unsigned long long xtd::parse< unsigned long long > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
unsigned long long xtd::parse< unsigned long long > (const std::string &str)
 Convert a string into a type. More...
 
template<>
unsigned short xtd::parse< unsigned short > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
unsigned short xtd::parse< unsigned short > (const std::string &str)
 Convert a string into a type. More...
 
template<>
xtd::sbyte xtd::parse< xtd::sbyte > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
xtd::sbyte xtd::parse< xtd::sbyte > (const std::string &str)
 Convert a string into a type. More...
 
template<typename value_t >
std::string xtd::to_string (const value_t &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const bool &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const sbyte &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const char &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const unsigned char &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const short &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const unsigned short &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const int &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const unsigned int &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const long &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const unsigned long &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const long long &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const unsigned long long &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const float &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const double &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const long double &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const std::chrono::system_clock::time_point &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const std::tm &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<typename type_t , typename Period >
std::string xtd::to_string (const std::chrono::duration< type_t, Period > &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const char8 &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const char16 &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const char32 &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const wchar &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<typename value_t >
std::string xtd::to_string (const value_t &value, const std::string &fmt)
 Convert a specified value into a string with specified format. More...
 
template<typename value_t >
std::wstring xtd::to_string (const value_t &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const bool &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const sbyte &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const char &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const unsigned char &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const short &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const unsigned short &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const int &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const unsigned int &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const long &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const unsigned long &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const long long &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const unsigned long long &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const float &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const double &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const long double &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const std::chrono::system_clock::time_point &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const std::tm &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<typename type_t , typename Period >
std::wstring xtd::to_string (const std::chrono::duration< type_t, Period > &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const std::wstring &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const char8 &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const char16 &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const char32 &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const wchar &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<typename value_t >
std::wstring xtd::to_string (const value_t &value, const std::wstring &fmt)
 Convert a specified value into a string with specified format. More...
 
template<>
std::string xtd::to_string (const date_time &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<typename value_t , typename char_t >
bool xtd::try_parse (const std::basic_string< char_t > &str, value_t &value) noexcept
 Convert a string into a type. More...
 
template<typename value_t , typename char_t >
bool xtd::try_parse (const std::basic_string< char_t > &str, value_t &value, const std::locale &locale) noexcept
 Convert a string into a type. More...
 
template<typename value_t , typename char_t >
bool xtd::try_parse (const char_t *str, value_t &value) noexcept
 Convert a string into a type. More...
 
template<typename value_t , typename char_t >
bool xtd::try_parse (const char_t *str, value_t &value, const std::locale &locale) noexcept
 Convert a string into a type. More...
 
template<typename value_t , typename char_t >
bool xtd::try_parse (const std::basic_string< char_t > &str, value_t &value, number_styles style) noexcept
 Convert a string into a type. More...
 
template<typename value_t , typename char_t >
bool xtd::try_parse (const std::basic_string< char_t > &str, value_t &value, number_styles style, const std::locale &locale) noexcept
 Convert a string into a type. More...
 
template<typename value_t , typename char_t >
bool xtd::try_parse (const char_t *str, value_t &value, number_styles style) noexcept
 Convert a string into a type. More...
 
template<typename value_t , typename char_t >
bool xtd::try_parse (const char_t *str, value_t &value, number_styles style, const std::locale &locale) noexcept
 Convert a string into a type. More...
 
template<typename ... args_t>
void xtd::unused (args_t &&... args)
 It may be used to suppress the "unused variable" or "unused local typedefs" compiler warnings when the variable or typedef can't be removed or commented out, e.g. when some blocks of the code are conditionally activated. More...
 

Variables

xtd::debugstreambuf xtd::cdebugstreambuf
 A xtd::debugstreambuf variable used by xtd::cdebug ostream. More...
 

Methods

template<typename type_t >
static const type_t * xtd::convert_pointer::to_ptr (const type_t &value)
 Casts a type into another type. More...
 
template<typename type_t >
static type_t * xtd::convert_pointer::to_ptr (type_t &value)
 Casts a type into another type. More...
 
template<typename type_t >
static const type_t * xtd::convert_pointer::to_ptr (const type_t *value)
 Casts a type into another type. More...
 
template<typename type_t >
static type_t * xtd::convert_pointer::to_ptr (type_t *value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static const new_type_t * xtd::convert_pointer::to_ptr (const current_type_t *value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static new_type_t * xtd::convert_pointer::to_ptr (current_type_t *value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static const new_type_t * xtd::convert_pointer::to_ptr (const current_type_t &value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static new_type_t * xtd::convert_pointer::to_ptr (current_type_t &value)
 Casts a type into another type. More...
 
template<typename type_t >
static const type_t & xtd::convert_pointer::to_ref (const type_t &value)
 Casts a type into another type. More...
 
template<typename type_t >
static type_t & xtd::convert_pointer::to_ref (type_t &value)
 Casts a type into another type. More...
 
template<typename type_t >
static const type_t & xtd::convert_pointer::to_ref (const type_t *value)
 Casts a type into another type. More...
 
template<typename type_t >
static type_t & xtd::convert_pointer::to_ref (type_t *value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static const new_type_t & xtd::convert_pointer::to_ref (const current_type_t &value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static new_type_t & xtd::convert_pointer::to_ref (current_type_t &value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static const new_type_t & xtd::convert_pointer::to_ref (const current_type_t *value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static new_type_t & xtd::convert_pointer::to_ref (current_type_t *value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static std::unique_ptr< new_type_t > xtd::convert_pointer::to_unique_ptr (std::unique_ptr< current_type_t > &value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static std::unique_ptr< new_type_t > xtd::convert_pointer::to_unique_ptr (std::unique_ptr< current_type_t > &&value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static std::shared_ptr< new_type_t > xtd::convert_pointer::to_shared_ptr (const std::shared_ptr< current_type_t > &value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static std::shared_ptr< new_type_t > xtd::convert_pointer::to_shared_ptr (std::shared_ptr< current_type_t > &value)
 Casts a type into another type. More...
 
template<typename new_type_t , typename current_type_t >
static std::shared_ptr< new_type_t > xtd::convert_pointer::to_shared_ptr (std::shared_ptr< current_type_t > &&value)
 Casts a type into another type. More...
 

Macro Definition Documentation

◆ add_last_arg_to_command_

#define add_last_arg_to_command_ (   command,
  last_arg,
  ... 
)    __add_last_arg_to_command_chooser__(command, last_arg, __VA_ARGS__)(command, last_arg, __VA_ARGS__)

#include <xtd.core/include/xtd/add_last_arg_to_command.h>

Adds last argument to a command with variadic arguments.

Parameters
commandThe variadic arguments command.
last_argThe last argument to add to variadic arguments
...Variadic arguments.
Header
#include <xtd/add_last_arg_to_command>
Library
xtd.core
Remarks
This macro is use specifically for add current stack frame to but not only.
Warning
The variadic arguments is limited to maximum 10 arguments.
See also
assert_ or cassert_ macro for example of use.

◆ const_overload_

#define const_overload_   xtd::const_overload_

#include <xtd.core/include/xtd/overload.h>

Helper keyword that use to determine one of const overloaded methods.

Namespace
xtd
Library
xtd.core

◆ non_const_overload_

#define non_const_overload_   xtd::non_const_overload_

#include <xtd.core/include/xtd/overload.h>

Helper keyword that use to determine one of non const overloaded methods.

Namespace
xtd
Library
xtd.core

◆ overload_

#define overload_   xtd::overload_

#include <xtd.core/include/xtd/overload.h>

Helper keyword that use to determine one of const and non const overloaded methods.

Namespace
xtd
Library
xtd.core

Typedef Documentation

◆ action

template<typename... arguments_t>
using xtd::action = typedef delegate <void(arguments_t...)>

#include <xtd.core/include/xtd/action.h>

Represents a xtd::delegate that has variable parameters and does not return a value.

Header
#include <xtd/action>
Namespace
xtd
Library
xtd.core

◆ async_callback

using xtd::async_callback = typedef delegate<void(async_result ar)>

#include <xtd.core/include/xtd/delegate.h>

References a method to be called when a corresponding asynchronous operation completes.

Parameters
arThe result of the asynchronous operation.
Header
#include <xtd/async_callback>
Namespace
xtd
Library
xtd.core
Examples:
socket_tcp_ip_v4_without_thread.cpp.

◆ async_result

using xtd::async_result = typedef std::shared_ptr<xtd::iasync_result>

#include <xtd.core/include/xtd/async_result.h>

Represents the status of an asynchronous operation.

Namespace
xtd
Library
xtd.core

◆ const_object_ref

using xtd::const_object_ref = typedef std::reference_wrapper<const object>

#include <xtd.core/include/xtd/const_object_ref.h>

Represents an object reference.

Header
#include <xtd/forms/const_object_ref>
Namespace
xtd::forms
Library
xtd.forms

◆ enum_collection

template<typename enum_t >
using xtd::enum_collection = typedef std::vector<std::pair<enum_t, xtd::ustring> >

#include <xtd.core/include/xtd/enum_collection.h>

Represents a pair of an enum_t value and a string of an enum of type enum_t.

Header
#include <xtd/enum_collection>
Namespace
xtd
Library
xtd.core
Remarks
For more information about enumeration, see enum class guide.

◆ func

template<typename result_t , typename... arguments_t>
using xtd::func = typedef delegate<result_t(arguments_t...)>

#include <xtd.core/include/xtd/func.h>

Represents a delegate that has variables parameters and returns a value of the type specified by the result_t type.

Namespace
xtd
Library
xtd.core

◆ object_ref

using xtd::object_ref = typedef std::reference_wrapper<object>

#include <xtd.core/include/xtd/object_ref.h>

Represents an object reference.

Header
#include <xtd/forms/object_ref>
Namespace
xtd::forms
Library
xtd.forms

◆ parameterized_thread_start

using xtd::threading::parameterized_thread_start = typedef delegate<void(std::any)>

#include <xtd.core/include/xtd/threading/parameterized_thread_start.h>

Represents the method that executes on a xtd::threading::thread.

Parameters
objAn object that contains data for the thread procedure.
using parameterized_thread_start = action<std::any>
Header
#include <xtd/threading/parameterized_thread_start>
Namespace
xtd::threading
Library
xtd.core

◆ predicate

template<typename type_t >
using xtd::predicate = typedef delegate<bool(type_t)>

#include <xtd.core/include/xtd/predicate.h>

Represents a delegate that defines a set of criteria and determines whether the specified object meets those criteria.

Namespace
xtd
Library
xtd.core

◆ thread_start

using xtd::threading::thread_start = typedef delegate<void()>

#include <xtd.core/include/xtd/threading/thread_start.h>

Represents the method that executes on a xtd::threading::thread.

Header
#include <xtd/threading/thread_start>
Namespace
xtd::threading
Library
xtd.core

◆ timer_callback

#include <xtd.core/include/xtd/threading/timer_callback.h>

Represents the method that handles calls from a xtd::threading::timer.

Header
#include <xtd/threading/timer_callback>
Namespace
xtd::threading
Library
xtd.core
Parameters
stateAn object containing application-specific information relevant to the method invoked by this delegate.
Remarks
Use a xtd::threading::timer_callback delegate to specify the method that is called by a xtd::threading::timer. This method does not execute in the thread that created the timer; it executes in a separate thread pool thread that is provided by the system. The xtd::threading::timer_callback delegate invokes the method once after the start time elapses, and continues to invoke it once per timer interval until the xtd::threading::timer is destroy, or until the xtd::threading::timer::change method is called with the interval value Infinite.
Note
The timer delegate is specified when the timer is constructed, and cannot be changed. The start time for a xtd::threading::timer is passed in the due_time parameter of the xtd::threading::timer constructors, and the period is passed in the period parameter. For an example that demonstrates creating and using a xtd::threading::timer_callback delegate, see xtd::threading::timer.

◆ wait_callback

using xtd::threading::wait_callback = typedef delegate<void(std::any)>

#include <xtd.core/include/xtd/threading/wait_callback.h>

Represents a callback method to be executed by a thread pool thread.

Header
#include <xtd/threading/wait_callback>
Namespace
xtd::threading
Library
xtd.core
Parameters
stateAn object containing information to be used by the callback method.
Remarks
xtd::threading::wait_callback represents a callback method that you want to execute on a xtd::threading::thread_pool thread. Create the delegate by passing your callback method to the xtd::threading::wait_callback constructor. Your method must have the signature shown here.
Queue the method for execution by passing the xtd::threading::wait_callback delegate to xtd::threading::thread_pool::queue_user_work_item. The callback method executes when a thread pool thread becomes available.
If you want to pass information to the callback method, create an object that contains the necessary information and pass it to the xtd::threading::thread_pool::queue_user_work_item(xtd::threading::wait_callback, xtd::object&) method as the second argument. Each time the callback method executes, the state parameter contains this object.
For examples that use the xtd::threading::wait_callback delegate, see the xtd::threading::thread_pool::queue_user_work_item method.

◆ wait_or_timer_callback

using xtd::threading::wait_or_timer_callback = typedef delegate<void(std::any, bool)>

#include <xtd.core/include/xtd/threading/wait_or_timer_callback.h>

Represents a method to be called when a xtd::threading::wait_handle is signaled or times out.

Header
#include <xtd/threading/wait_or_timer_callback>
Namespace
xtd::threading
Library
xtd.core
Parameters
stateAn object containing information to be used by the callback method each time it executes.
timed_outtrue if the xtd::threading::wait_handle timed out; false if it was signaled.
Remarks
xtd::threading::wait_or_timer_callback represents a callback method that you want to execute when a registered wait handle times out or is signaled. Create the delegate by passing your callback method to the xtd::threading::wait_or_timer_callback constructor. Your method must have the signature shown here.
Create the registered wait handle by passing the xtd::threading::wait_or_timer_callback delegate and a xtd::threading::wait_handle to xtd::threading::thread_pool::register_wait_for_single_object. Your callback method executes each time the xtd::threading::wait_handle times out or is signaled.
If you want to pass information to your callback method, create an object that contains the necessary information and pass it to xtd::threading::thread_pool::register_wait_for_single_object when you create the registered wait handle. Each time your callback method executes, the state parameter contains this object.

Enumeration Type Documentation

◆ address_family

#include <xtd.core/include/xtd/net/sockets/address_family.h>

Specifies the addressing scheme that an instance of the xtd::net::sockets::socket class can use.

enum class address_family
Header
#include <xtd/net/sockets/address_family>
Namespace
xtd::net::sockets
Library
xtd.core
Enumerator
unknown 

Unknown address family.

unspecified 

Unspecified address family.

unix 

Unix local to host address.

inter_network 

Address for IP version 4.

imp_link 

ARPANET IMP address.

pup 

Address for PUP protocols.

chaos 

Address for MIT CHAOS protocols.

ns 

Address for Xerox NS protocols.

ipx 

IPX or SPX address.

iso 

Address for ISO protocols.

osi 

Address for OSI protocols.

ecma 

European Computer Manufacturers Association (ECMA) address.

data_kit 

Address for Datakit protocols.

ccitt 

Addresses for CCITT protocols, such as X.25.

sna 

IBM SNA address.

dec_net 

DECnet address.

data_link 

Direct data-link interface address.

lat 

LAT address.

hyper_channel 

NSC Hyperchannel address.

apple_talk 

AppleTalk address.

net_bios 

NetBios address.

voice_view 

VoiceView address.

fire_fox 

FireFox address.

banyan 

Banyan address.

atm 

Native ATM services address.

inter_network_v6 

Address for IP version 6.

cluster 

Address for Microsoft cluster products.

ieee12844 

IEEE 1284.4 workgroup address.

irda 

IrDA address.

network_designers 

Address for Network Designers OSI gateway-enabled protocols.

max 

MAX address.

◆ architecture_id

enum xtd::architecture_id
strong

#include <xtd.core/include/xtd/architecture_id.h>

Identifies the processor architecture, supported by an assembly.

Header
#include <xtd/architecture_id>
Namespace
xtd
Library
xtd.core
See also
operating_system
Enumerator
unknown 

The processor architecture is unknown.

x86 

The processor architecture is x86 (Intel or amd).

arm 

The processor architecture is ARM.

◆ assert_dialog_result

#include <xtd.core/include/xtd/diagnostics/assert_dialog_result.h>

Specifies identifiers to indicate the return value of an assert dialog box.

Header
#include <xtd/diagnostics/assert_dialog_result>
Namespace
xtd::diagnostics
Library
xtd.core
Remarks
The xtd::diagnostics::debug::show_assert_dialog method use this enumeration.
Enumerator
abort 

The assert dialog return value is Abort (usually sent from a button labeled Abort).

retry 

The assert dialog return value is Retry (usually sent from a button labeled Retry).

ignore 

The assert dialog return value is Ignore (usually sent from a button labeled Ignore).

◆ build_type

enum xtd::build_type
strong

#include <xtd.core/include/xtd/build_type.h>

Identifies the build type.

Header
#include <xtd/build_type>
Namespace
xtd
Library
xtd.core
See also
compiler
Enumerator
debug 

Build type debug.

release 

Build type release.

◆ compiler_id

enum xtd::compiler_id
strong

#include <xtd.core/include/xtd/compiler_id.h>

Identifies the compiler, supported by an assembly.

Header
#include <xtd/compiler_id>
Namespace
xtd
Library
xtd.core
See also
compiler
Enumerator
unknown 

The compiler is unknown.

microsoft_visual_studio 

The compiler is Microsoft Visual Studio.

clang 

The compiler is clang.

gcc 

The compiler is gcc.

◆ console_color

enum xtd::console_color
strong

#include <xtd.core/include/xtd/console_color.h>

Specifies constants that define foreground and background colors for the console.

Header
#include <xtd/console_color>
Namespace
xtd
Library
xtd.core
See also
console
Enumerator
default_color 

The default color.

black 

The color black.

dark_blue 

The color dark blue.

dark_green 

The color dark green.

dark_cyan 

The color dark cyan (dark blue-green).

dark_red 

The color dark red.

dark_magenta 

The color dark magenta (dark purplish-red).

dark_yellow 

The color dark yellow (ochre).

gray 

The color gray.

dark_gray 

The color dark gray.

blue 

The color blue.

green 

The color green.

cyan 

The color cyan (blue-green).

red 

The color red.

magenta 

The color magenta (purplish red).

yellow 

The color yellow.

white 

The color white.

◆ console_key

enum xtd::console_key
strong

#include <xtd.core/include/xtd/console_key.h>

Specifies the standard keys on a console.

Header
#include <xtd/console_key>
Namespace
xtd
Library
xtd.core
See also
Console
Enumerator
backspace 

The BACKSPACE key.

tab 

The TAB key.

clear 

The CLEAR key.

enter 

The ENTER key.

pause 

The PAUSE key.

caps_lock 

The CapsLock key.

escape 

The ESC (ESCAPE) key.

spacebar 

The SPACEBAR key.

page_up 

The PAGE UP key.

page_down 

The PAGE DOWN key.

end 

The END key.

home 

The HOME key.

left_arrow 

The LEFT ARROW key.

up_arrow 

The UP ARROW key.

right_arrow 

The RIGHT ARROW key.

down_arrow 

The DOWN ARROW key.

select 

The SELECT key.

print 

The PRINT key.

execute 

The EXECUTE key.

print_screen 

The PRINT SCREEN key.

insert 

The INS (INSERT) key.

del 

The DEL (DELETE) key.

help 

The HELP key.

d0 

The 0 key.

d1 

The 1 key.

d2 

The 2 key.

d3 

The 3 key.

d4 

The 4 key.

d5 

The 5 key.

d6 

The 6 key.

d7 

The 7 key.

d8 

The 8 key.

d9 

The 9 key.

The A key.

The B key.

The C key.

The D key.

The E key.

The F key.

The G key.

The H key.

The I key.

The J key.

The K key.

The L key.

The M key.

The N key.

The O key.

The P key.

The Q key.

The R key.

The S key.

The T key.

The U key.

The V key.

The W key.

The X key.

The Y key.

The Z key.

left_windows 

The left Windows logo key (Microsoft Natural Keyboard).

right_windows 

The right Windows logo key (Microsoft Natural Keyboard).

applications 

The Application key (Microsoft Natural Keyboard).

sleep 

The Computer Sleep key.

num_pad_0 

The 0 key on the numeric keypad.

num_pad_1 

The 1 key on the numeric keypad.

num_pad_2 

The 2 key on the numeric keypad.

num_pad_3 

The 3 key on the numeric keypad.

num_pad_4 

The 4 key on the numeric keypad.

num_pad_5 

The 5 key on the numeric keypad.

num_pad_6 

The 6 key on the numeric keypad.

num_pad_7 

The 7 key on the numeric keypad.

num_pad_8 

The 8 key on the numeric keypad.

num_pad_9 

The 9 key on the numeric keypad.

multiply 

The Multiply key.

add 

The Add key.

separator 

The Separator key.

subtract 

The Subtract key.

decimal 

The Decimal key.

divide 

The Divide key.

f1 

The F1 key.

f2 

The F2 key.

f3 

The F3 key.

f4 

The F4 key.

f5 

The F5 key.

f6 

The F6 key.

f7 

The F7 key.

f8 

The F8 key.

f9 

The F9 key.

f10 

The F10 key.

f11 

The F11 key.

f12 

The F12 key.

f13 

The F13 key.

f14 

The F14 key.

f15 

The F15 key.

f16 

The F16 key.

f17 

The F17 key.

f18 

The F18 key.

f19 

The F19 key.

f20 

The F20 key.

f21 

The F21 key.

f22 

The F22 key.

f23 

The F23 key.

f24 

The F24 key.

browser_back 

The Browser Back key (Windows 2000 or later).

browser_forward 

The Browser Forward key (Windows 2000 or later).

browser_refresh 

The Browser Refresh key (Windows 2000 or later).

browser_stop 

The Browser Stop key (Windows 2000 or later).

browser_search 

The Browser Search key (Windows 2000 or later).

browser_favorites 

The Browser Favorite key (Windows 2000 or later).

browser_home 

The Browser Home key (Windows 2000 or later).

volume_mute 

The Volume Mute key (Microsoft Natural Keyboard, Windows 2000 or later).

volume_down 

The Volume Down key (Microsoft Natural Keyboard, Windows 2000 or later).

volume_up 

The Volume Up key (Microsoft Natural Keyboard, Windows 2000 or later).

media_next 

The Media Next Track key (Microsoft Natural Keyboard, Windows 2000 or later).

media_previous 

The Media Previous Track key (Microsoft Natural Keyboard, Windows 2000 or later).

media_stop 

The Media Stop key (Microsoft Natural Keyboard, Windows 2000 or later).

media_play 

The Media Play/Pause key (Microsoft Natural Keyboard, Windows 2000 or later).

launch_mail 

The Start Mail key (Microsoft Natural Keyboard, Windows 2000 or later).

launch_media_select 

The Select Media key (Microsoft Natural Keyboard, Windows 2000 or later).

launch_app1 

The Start Application 1 key (Microsoft Natural Keyboard, Windows 2000 or later).

launch_app2 

The Start Application 2 key (Microsoft Natural Keyboard, Windows 2000 or later).

oem1 

The OEM 1 key (OEM specific).

oem_plus 

The OEM Plus key on any country/region keyboard (Windows 2000 or later).

oem_comma 

The OEM Comma key on any country/region keyboard (Windows 2000 or later).

oem_minus 

The OEM Minus key on any country/region keyboard (Windows 2000 or later).

oem_period 

The OEM Period key on any country/region keyboard (Windows 2000 or later).

oem2 

The OEM 2 key (OEM specific).

oem3 

The OEM " key (OEM specific).

oem4 

The OEM 4 key (OEM specific).

oem5 

The OEM 5 key (OEM specific).

oem6 

The OEM 6 key (OEM specific).

oem7 

The OEM 7 key (OEM specific).

oem8 

The OEM 8 key (OEM specific).

oem102 

The OEM 102 key (OEM specific).

process 

The IME PROCESS key.

packet 

The PACKET key (used to pass Unicode characters with keystrokes).

attention 

The ATTN key.

cr_sel 

The CRSEL (CURSOR SELECT) key.

ex_sel 

The EXSEL (EXTEND SELECTION) key.

erase_end_of_file 

The ERASE EOF key.

play 

The Play key.

zoom 

The ZOOM key.

no_name 

A constant reserved for future use.

pa1 

The PA1 key.

oem_clear 

The CLEAR key (OEM specific).

◆ console_modifiers

#include <xtd.core/include/xtd/console_modifiers.h>

Represents the SHIFT, ALT, and CTRL modifier keys on a keyboard.

Header
#include <xtd/console_modifiers>
Namespace
xtd
Library
xtd.core
See also
Console
Enumerator
none 

No modifier key.

alt 

The left or right ALT modifier key.

shift 

The left or right SHIFT modifier key.

control 

The left or right CTRL modifier key.

◆ console_special_key

#include <xtd.core/include/xtd/console_special_key.h>

Specifies combinations of modifier and console keys that can interrupt the current process.

Header
#include <xtd/console_special_key>
Namespace
xtd
Library
xtd.core
Remarks
The ConsoleCancelEventArgs::SpecialKey property returns the console_special_key enumeration type.
Simultaneously pressing certain key combinations signals the operating system to interrupt the currently running process. The two valid key combinations are console_modifiers::control plus BREAK (CTRL+BREAK) and console_modifiers::Control plus console_key.c (CTRL+C).
Enumerator
control_break 

The console_modifiers::control modifier key plus the BREAK console key.

control_c 

The console_modifiers::control modifier key plus the console_key C console key.

control_backslash 

The console_modifiers::control modifier key plus the console_key \ console key.

control_z 

The console_modifiers::control modifier key plus the console_key Z console key.

◆ date_time_kind

enum xtd::date_time_kind
strong

#include <xtd.core/include/xtd/date_time_kind.h>

Specifies whether a DateTime object represents a local time, a Coordinated Universal Time (UTC), or is not specified as either local time or UTC.

Namespace
xtd
Header
#include <xtd/date_time_kind>
Library
xtd.core
Remarks
A member of the xtd::date_time_kind enumeration is returned by the xtd::date_time::kind property.
The members of the xtd::date_time_kind enumeration are used in conversion operations between local time and Coordinated Universal Time (UTC), but not in comparison or arithmetic operations.
Enumerator
unspecified 

The time represented is not specified as either local time or Coordinated Universal Time (UTC).

utc 

The time represented is UTC.

local 

The time represented is local time.

◆ day_of_week

enum xtd::day_of_week
strong

#include <xtd.core/include/xtd/day_of_week.h>

Specifies the day of the week.

Namespace
xtd
Header
#include <xtd/day_of_week>
Library
xtd.core
Examples
The following example demonstrates the xtd::date_time::day_of_week property and the xtd::day_of_week enumeration.
#include <xtd/console>
#include <xtd/date_time>
#include <xtd/startup>
using namespace xtd;
class program {
public:
static auto main() {
// Create a DateTime for the first of May, 2003.
auto dt = date_time {2003, 5, 1};
console::write_line("Is Thursday the day of the week for {0:d}?: {1}", dt, dt.day_of_week() == day_of_week::thursday);
console::write_line("The day of the week for {0:d} is {1}.", dt, dt.day_of_week());
}
};
startup_(program::main);
// This code can produces the following output:
//
// Is Thursday the day of the week for 05/01/2003?: true
// The day of the week for 05/01/2003 is thursday.
Remarks
The xtd::day_of_week enumeration represents the day of the week in calendars that have seven days per week. The value of the constants in this enumeration ranges from xtd::day_of_week::sunday to xtd::day_of_week::saturday. If cast to an integer, its value ranges from zero (which indicates xtd::day_of_week::sunday) to six (which indicates xtd::day_of_week::saturday).
This enumeration is useful when it is desirable to have a strongly typed specification of the day of the week. For example, this enumeration is the type of the property value for the xtd::date_time::day_of_week and xtd::date_time_offset::day_of_week properties.
The members of the xtd::day_of_week enumeration are not localized. To return the localized name of the day of the week, call the xtd::date_time::to_string(ustring) method with either the "h" or "H" format strings. The former format string produces the abbreviated weekday name; the latter produces the full weekday name.
Enumerator
sunday 

Indicates sunday.

monday 

Indicates monday.

tuesday 

Indicates tuesday.

wednesday 

Indicates wednesday.

thursday 

Indicates thursday.

friday 

Indicates friday.

saturday 

Indicates saturday.

◆ enum_attribute

enum xtd::enum_attribute
strong

#include <xtd.core/include/xtd/enum_attribute.h>

Specifies the enum attribute.

enum class enum_attribute
Header
#include <xtd/enum_attribute>
Namespace
xtd
Library
xtd.core
Remarks
The xtd::enum_attribute is used with the xtd::enum_set_attribute struct.
For more information about enumeration, see enum class guide.
Enumerator
standard 

Enum standard attribute. The default value.

flags 

Enum flags attribute.

◆ environment_variable_target

#include <xtd.core/include/xtd/environment_variable_target.h>

Specifies the location where an environment variable is stored or retrieved in a set or get operation.

Namespace
xtd
Library
xtd.core
Enumerator
process 

The environment variable is stored or retrieved from the environment block associated with the current process.

user 

The environment variable is stored or retrieved from the HKEY_CURRENT_USER key in the Windows operating system registry.

machine 

The environment variable is stored or retrieved from the HKEY_LOCAL_MACHINE Manager key in the Windows operating system registry.

◆ exit_mode

enum xtd::exit_mode
strong

#include <xtd.core/include/xtd/exit_mode.h>

Specifies exit mode for the xtd::environment::program_exit event.

Namespace
xtd
Library
xtd.core
Remarks
Each of the above values represents a constant, which represent different exit status of to the program.
For more information about exit_mode, see EXIT_status.
Enumerator
normal 

Represent the exit mode when the terminates normally (via xtd::environment::exit or returning from the main function).

quick 

Represent the exit mode when the terminates quickly (via xtd::environment::quick_exit).

◆ exit_status

enum xtd::exit_status
strong

#include <xtd.core/include/xtd/exit_status.h>

Specifies exit status for the xtd::environment::exit method.

Namespace
xtd
Library
xtd.core
Remarks
Each of the above values represents a constant, which represent different exit status of to the program.
For more information about exit_status, see EXIT_status.
Enumerator
success 

Successful execution of a program. Is equal to EXIT_SUCCESS.

failure 

Unsuccessful execution of a program. Is equal to EXIT_FAILURE.

◆ file_access

enum xtd::io::file_access
strong

#include <xtd.core/include/xtd/io/file_access.h>

Defines constants for read, write, or read/write access to a file. This enumeration has a flags attribute that allows a bitwise combination of its member values.

Library
xtd.core
Enumerator
read 

Read access to the file. Data can be read from the file. Combine with Write for read/write access.

write 

Write access to the file. Data can be written to the file. Combine with Read for read/write access.

read_write 

The file is a read_write file. The file is part of the operating read_write or is used exclusively by the operating read_write.

◆ file_attributes

#include <xtd.core/include/xtd/io/file_attributes.h>

Provides attributes for files and directories.

enum class file_attributes
Header
#include <xtd/io/file_attributes>
Namespace
xtd::io
Library
xtd.core
Enumerator
read_only 

The file is read-only.

hidden 

The file is hidden, and thus is not included in an ordinary directory listing.

system 

The file is a system file. The file is part of the operating system or is used exclusively by the operating system.

directory 

The file is a directory.

archive 

The file's archive status. Applications use this attribute to mark files for backup or removal.

device 

Reserved for future use.

normal 

The file is normal and has no other attributes set. This attribute is valid only if used alone.

temporary 

The file is temporary. File systems attempt to keep all of the data in memory for quicker access rather than flushing the data back to mass storage. A temporary file should be deleted by the application as soon as it is no longer needed.

sparse_file 

The file is a sparse file. Sparse files are typically large files whose data are mostly zeros.

reparse_point 

The file contains a reparse point, which is a block of user-defined data associated with a file or a directory.

compressed 

The file is compressed.

offline 

The file is offline. The data of the file is not immediately available.

not_content_indexed 

The file will not be indexed by the operating system's content indexing service.

encrypted 

The file or directory is encrypted. For a file, this means that all data in the file is encrypted. For a directory, this means that encryption is the default for newly created files and directories.

◆ file_permissions

#include <xtd.core/include/xtd/io/file_permissions.h>

Provides permissions for files and directories.

enum class file_permissions
Header
#include <xtd/io/file_permissions>
Namespace
xtd::io
Library
xtd.core
Enumerator
none 

No permission bits are set.

owner_read 

File owner has read permission.

owner_write 

File owner has write permission.

owner_execute 

File owner has execute/search permission.

owner_all 

File owner has read, write and execute/search permission. Equivalent to xtd::io::file_permissions::owner_read | xtd::io::file_permissions::owner_write | xtd::io::file_permissions::owner_execute.

group_read 

The file's ueer group has read permission.

group_write 

The file's ueer group has write permission.

group_execute 

The file's ueer group has execute/search permission.

group_all 

The file's ueer group has read, write and execute/search permission. Equivalent to xtd::io::file_permissions::group_read | xtd::io::file_permissions::group_write | xtd::io::file_permissions::group_execute.

others_read 

Other ueers has read permission.

others_write 

Other ueers has write permission.

others_execute 

Other ueers has execute/search permission.

others_all 

Other ueers has read, write and execute/search permission. Equivalent to xtd::io::file_permissions::others_read| xtd::io::file_permissions::others_write | xtd::io::file_permissions::others_execute.

all 

All users have read, write, and execute/search permissions. Equivalent to xtd::io::file_permissions::owner_all | xtd::io::file_permissions::group_all | xtd::io::file_permissions::others_all.

set_uid 

Set user ID to file owner user ID on execution.

set_gid 

Set group ID to file's user group ID on execution.

sticky_bit 

Implementation-defined meaning, but POSIX XSI specifies that when set on a directory, only file owners may delete files even if the directory is writeable to others (used with /tmp).

mask 

All valid permission bits. Equivalent to xtd::io::file_permissions::all | xtd::io::file_permissions::set_uid | xtd::io::file_permissions::set_gid | xtd::io::file_permissions::sticky_bit.

unknown 

Unknown permissions (e.g. when file or directory is created without permissions).

◆ io_control_code

#include <xtd.core/include/xtd/net/sockets/io_control_code.h>

Specifies the IO control codes supported by the xtd::net::sockets::socket::io_control method.

enum class io_control_code : uint64
Header
#include <xtd/net/sockets/io_control_code>
Namespace
xtd::net::sockets
Library
xtd.core
Enumerator
enable_circular_queuing 

Replace the oldest queued datagram with an incoming datagram when the incoming message queues are full. This value is equal to the Winsock†2 SIO_ENABLE_CIRCULAR_QUEUEING constant.

flush 

Discard the contents of the sending queue. This value is equal to the Winsock†2 SIO_FLUSH constant.

address_list_change 

Enable receiving notification when the list of local interfaces for the socket's protocol family changes. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock†2 SIO_ADDRESS_LIST_CHANGE constant.

data_to_read 

Return the number of bytes available for reading. This value is equal to the Winsock†2 FIONREAD constant.

oob_data_read 

Return information about out-of-band data waiting to be received. When using this control code on stream sockets, the return value indicates the number of bytes available.

get_broadcast_address 

Return a SOCKADDR structure that contains the broadcast address for the address family of the current socket. The returned address can be used with the Overload xtd:nNet::sockets::socket::send_to method. This value is equal to the Winsock†2 SIO_GET_BROADCAST_ADDRESS constant. This value can be used on User Datagram Protocol (UDP) sockets only.

address_list_query 

Return the list of local interfaces that the socket can bind to. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock†2 SIO_ADDRESS_LIST_QUERY constant.

query_target_pnp_handle 

Retrieve the underlying provider's SOCKET handle. This handle can be used to receive plug-and-play event notification. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock†2 SIO_QUERY_TARGET_PNP_HANDLE constant.

async_io 

Enable notification for when data is waiting to be received. This value is equal to the Winsock†2 FIOASYNC constant.

non_blocking_io 

Control the blocking behavior of the socket. If the argument specified with this control code is zero, the socket is placed in blocking mode. If the argument is nonzero, the socket is placed in nonblocking mode. This value is equal to the Winsock†2 FIONBIO constant.

associate_handle 

Associate this socket with the specified handle of a companion interface. Refer to the appropriate protocol-specific annex in the Winsock†2 reference or documentation for the particular companion interface for additional details. It is recommended that the Component object Model (COM) be used instead of this IOCTL to discover and track other interfaces that might be supported by a socket. This control code is present for backward compatibility with systems where COM is not available or cannot be used for some other reason. This value is equal to the Winsock†2 SIO_ASSOCIATE_HANDLE constant.

multipoint_loopback 

Control whether multicast data sent by the socket appears as incoming data in the sockets receive queue. This value is equal to the Winsock†2 SIO_MULTIPOINT_LOOPBACK constant.

multicast_scope 

Control the number of times a multicast packet can be forwarded by a router, also known as the Time to Live (TTL), or hop count. This value is equal to the Winsock†2 SIO_MULTICAST_SCOPE constant.

set_qos 

Sets the Quality of Service (QOS) attributes for the socket. QOS defines the bandwidth requirements for the socket. This control code is supported on Windows Me, Windows 2000, and later operating systems. This value is equal to the Winsock†2 SIO_SET_QOS constant.

set_group_qos 

Sets the Quality of Service (QOS) attributes for the socket group. This value is reserved for future use and is equal to the Winsock†2 SIO_SET_GROUP_QOS constant.

routing_interface_change 

Enable receiving notification when the local interface used to access a remote endpoint changes. This value is equal to the Winsock†2 SIO_ROUTING_INTERFACE_CHANGE constant.

namespace_change 

Control whether the socket receives notification when a namespace query becomes invalid. This control code is supported on Windows XP and later operating systems. This value is equal to the Winsock†2 SIO_NSP_NOTIFY_CHANGE constant.

receive_all 

Enable receiving all IPv4 packets on the network. The socket must have address family xtd::net::sockets::address_family::inter_network, the socket type must bextd::net::sockets::socket_type::raw, and the protocol type must be xtd::net::sockets::protocol_type::ip. The current user must belong to the Administrators group on the local computer, and the socket must be bound to a specific port. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock†2 SIO_RCVALL constant.

receive_all_multicast 

Enable receiving all multicast IPv4 packets on the network. These are packets with destination addresses in the range 224.0.0.0 through 239.255.255.255. The socket must have address family xtd::net::sockets::address_family::inter_network, the socket type must be xtd::net::sockets::socket_type::raw, and the protocol type must be xtd::net::sockets::protocol_type::udp. The current user must belong to the Administrators group on the local computer, and the socket must be bound to a specific port. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock†2 SIO_RCVALL_MCAST constant.

receive_all_igmp_multicast 

Enable receiving all Internet Group Management Protocol (IGMP) packets on the network. The socket must have address family xtd::net::sockets::address_family::inter_network, the socket type must be xtd::net::sockets::socket_type::raw, and the protocol type must be xtd::net::sockets::protocol_type::igmp. The current user must belong to the Administrators group on the local computer, and the socket must be bound to a specific port. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock†2 SIO_RCVALL_IGMPMCAST constant.

keep_alive_values 

Control sending TCP keep-alive packets and the interval at which they are sent. This control code is supported on Windows 2000 and later operating systems. For additional information, see RFC 1122 section 4.2.3.6. This value is equal to the Winsock†2 SIO_KEEPALIVE_VALS constant.

absorb_router_alert 

This value is equal to the Winsock†2 SIO_ABSORB_RTRALERT constant.

unicast_interface 

Sets the interface used for outgoing unicast packets. This value is equal to the Winsock†2 SIO_UCAST_IF constant.

limit_broadcasts 

This value is equal to the Winsock†2 SIO_LIMIT_BROADCASTS constant.

bind_to_interface 

Bind the socket to a specified interface index. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock†2 SIO_INDEX_BIND constant.

multicast_interface 

Sets the interface used for outgoing multicast packets. The interface is identified by its index. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock†2 SIO_INDEX_MCASTIF constant.

add_multicast_group_on_interface 

Join a multicast group using an interface identified by its index. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock†2 SIO_INDEX_ADD_MCAST constant.

delete_multicast_group_from_interface 

Remove the socket from a multicast group. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock†2 SIO_INDEX_ADD_MCAST constant.

get_extension_function_pointer 

Obtain provider-specific functions that are not part of the Winsock specification. Functions are specified using their provider-assigned GUID. This value is equal to the Winsock†2 SIO_GET_EXTENSION_FUNCTION_POINTER constant.

get_qos 

Retrieve the QOS structure associated with the socket. This control is only supported on platforms that provide a QOS capable transport (Windows Me, Windows 2000, and later.) This value is equal to the Winsock†2 SIO_GET_QOS constant.

get_group_qos 

Return the Quality of Service (QOS) attributes for the socket group. This value is reserved for future use, and is equal to the Winsock†2 SIO_GET_GROUP_QOS constant.

translate_handle 

Return a handle for the socket that is valid in the context of a companion interface. This value is equal to the Winsock†2 SIO_TRANSLATE_HANDLE constant.

routing_interface_query 

Return the interface addresses that can be used to connect to the specified remote address. This value is equal to the Winsock†2 SIO_ROUTING_INTERFACE_QUERY constant.

address_list_sort 

Sort the structure returned by the xtd::net::sockets::io_control_code::address_list_query field and add scope ID information for IPv6 addresses. This control code is supported on Windows XP and later operating systems. This value is equal to the Winsock†2 SIO_ADDRESS_LIST_SORT constant.

◆ ip_protection_level

#include <xtd.core/include/xtd/net/sockets/ip_protection_level.h>

A value that enables restriction of an IPv6 socket to a specified scope, such as addresses with the same link local or site local prefix.

Header
#include <xtd/net/sockets/ip_protection_level>
Namespace
xtd::net::sockets
Library
xtd.core
Remarks
This option enables applications to place access restrictions on IPv6 sockets. Such restrictions enable an application running on a private LAN to simply and robustly harden itself against external attacks. This socket option widens or narrows the scope of a listening socket, enabling unrestricted access from public and private users when appropriate, or restricting access only to the same site, as required.
Enumerator
unspecified 

The IP protection level is unspecified. On Windows 7 and Windows Server 2008 R2, the default value for the IP Protection level on a socket is unspecified.

unrestricted 

The IP protection level is unrestricted. This value would be used by applications designed to operate across the Internet, including applications taking advantage of IPv6 NAT traversal capabilities built into Windows (Teredo, for example). These applications may bypass IPv4 firewalls, so applications must be hardened against Internet attacks directed at the opened port. On Windows Server 2008 R2 and Windows Vista, the default value for the IP Protection level on a socket is unrestricted.

edge_restricted 

The IP protection level is edge restricted. This value would be used by applications designed to operate across the Internet. This setting does not allow Network Address Translation (NAT) traversal using the Windows Teredo implementation. These applications may bypass IPv4 firewalls, so applications must be hardened against Internet attacks directed at the opened port. On Windows Server 2003 and Windows XP, the default value for the IP Protection level on a socket is edge restricted.

restricted 

The IP protection level is restricted. This value would be used by intranet applications that do not implement Internet scenarios. These applications are generally not tested or hardened against Internet-style attacks. This setting will limit the received traffic to link-local only.

◆ language_id

enum xtd::language_id
strong

#include <xtd.core/include/xtd/language_id.h>

Identifies the c++ language used by assembly.

Namespace
xtd
Library
xtd.core
See also
xtd::cpp_language
Remarks
For more info about c++ see cppreference.
Enumerator
unknown 

The language is unknown.

cpp_pre98 

The language is pre 98.

cpp98 

The language is c++98.

cpp11 

The language is c++11.

cpp14 

The language is c++14.

cpp17 

The language is c++17.

cpp20 

The language is c++20.

cpp23 

The language is c++23.

◆ month_of_year

enum xtd::month_of_year
strong

#include <xtd.core/include/xtd/month_of_year.h>

Specifies the month of the year.

Namespace
xtd
Library
xtd.core
Examples
The following example demonstrates the xtd::date_time::days_in_month method and the xtd::month_of_year enumeration.
#include <xtd/console>
#include <xtd/date_time>
#include <xtd/startup>
class program {
public:
static auto main() {
xtd::console::write_line(days_in_july);
// days_in_feb gets 28 because the year 1998 was not a leap year.
// days_in_feb_leap gets 29 because the year 1996 was a leap year.
xtd::console::write_line(days_in_feb_leap);
}
};
startup_(program::main);
// This code can produces the following output:
//
// 31
// 28
// 29
Remarks
The xtd::month_of_year enumeration represents the month of the year in calendars that have twelve month per year. The value of the constants in this enumeration ranges from xtd::month_of_year::january to xtd::month_of_year::december. If cast to an integer, its value ranges from one (which indicates xtd::month_of_year::january) to twelve (which indicates xtd::month_of_year::december).
This enumeration is useful when it is desirable to have a strongly typed specification of the day of the week. For example, this enumeration is the type of the property value for the xtd::date_time::day_of_week and xtd::date_time_offset::day_of_week properties.
The members of the xtd::month_of_year enumeration are not localized. To return the localized name of the month of the year, call the xtd::date_time::to_string(ustring) method with either the "j" or "J" format strings. The former format string produces the abbreviated month name; the latter produces the full month name.
Enumerator
january 

Indicates january.

february 

Indicates february.

march 

Indicates march.

april 

Indicates april.

may 

Indicates may.

june 

Indicates june.

july 

Indicates july.

august 

Indicates august.

september 

Indicates september.

october 

Indicates october.

november 

Indicates november.

december 

Indicates december.

◆ number_styles

enum xtd::number_styles
strong

#include <xtd.core/include/xtd/number_styles.h>

Determines the styles permitted in numeric string arguments that are passed to the xtd::parse and xtd::try_parse methods of the integral and floating-point numeric types. This enumeration has a flags attribute that allows a bitwise combination of its member values.

Namespace
xtd
Library
xtd.core
Enumerator
none 

Indicates that no style elements, such as leading or trailing white space, thousands separators, or a decimal separator, can be present in the parsed string. The string to be parsed must consist of integral decimal digits only.

allow_leading_white 

Indicates that leading white-space characters can be present in the parsed string. Valid white-space characters have the Unicode values U+0009, U+000A, U+000B, U+000C, U+000D, and U+0020. Note that this is a subset of the characters for which the std::isspace(char) method returns true.

allow_trailing_white 

Indicates that trailing white-space characters can be present in the parsed string. Valid white-space characters have the Unicode values U+0009, U+000A, U+000B, U+000C, U+000D, and U+0020. Note that this is a subset of the characters for which the std::isspace(char) method returns true.

allow_leading_sign 

Indicates that the numeric string can have a leading sign.

allow_trailing_sign 

Indicates that the numeric string can have a trailing sign. Valid trailing sign characters are determined by the positive_sign and negative_sign properties.

allow_parentheses 

Indicates that the numeric string can have one pair of parentheses enclosing the number. The parentheses indicate that the string to be parsed represents a negative number.

allow_decimal_point 

Indicates that the numeric string can have a decimal point. If the number_styles value includes the allow_currency_symbol flag and the parsed string includes a currency symbol, the decimal separator character is determined by the std::use_facet<std::numpunct<char>>(std::locale()).decimal_point() method.

allow_thousands 

Indicates that the numeric string can have group separators, such as symbols that separate hundreds from thousands. If the number_styles value includes the allow_currency_symbol flag and the string to be parsed includes a currency symbol, the valid group separator character is determined by the currency_group_separator property, and the number of digits in each group is determined by the currency_Group_sizes property. Otherwise, the valid group separator character is determined by the number_group_separator property, and the number of digits in each group is determined by the number_group_sizes property.

allow_exponent 

Indicates that the numeric string can be in exponential notation. The allow_exponent flag allows the parsed string to contain an exponent that begins with the "E" or "e" character and that is followed by an optional positive or negative sign and an integer. In other words, it successfully parses strings in the form nnnExx, nnnE+xx, and nnnE-xx. It does not allow a decimal separator or sign in the significand or mantissa; to allow these elements in the string to be parsed, use the allow_decimal_point and allow_leading_sign flags, or use a composite style that includes these individual flags.

allow_currency_symbol 

Indicates that the numeric string can contain a currency symbol. Valid currency symbols are determined by the std::use_facet<std::moneypunct<char>>(std::locale()).curr_symbol() method.

allow_hex_specifier 

Indicates that the numeric string represents a hexadecimal value. Valid hexadecimal values include the numeric digits 0-9 and the hexadecimal digits A-F and a-f. Strings that are parsed using this style can be prefixed with "0x". A string that is parsed with the allow_hex_specifier style will always be interpreted as a hexadecimal value. The only flags that can be combined with allow_hex_specifier are allow_leading_white and allow_trailing_white. The number_styles enumeration includes a composite style, hex_number, that consists of these three flags.

allow_binary_specifier 

Indicates that the numeric string represents a binary value. Valid binary values include the numeric digits 0 and 1. Strings that are parsed using this style can be prefixed with "0b". A string that is parsed with the allow_binary_specifier style will always be interpreted as a binary value. The only flags that can be combined with allow_binary_specifier are allow_leading_white and allow_trailing_white. The number_styles enumeration includes a composite style, binary_number, that consists of these three flags.

allow_octal_specifier 

Indicates that the numeric string represents a octal value. Valid octal values include the numeric digits 0-7. Strings that are parsed using this style can be prefixed with "0". A string that is parsed with the allow_octal_specifier style will always be interpreted as an octal value. The only flags that can be combined with allow_octal_specifier are allow_leading_white and allow_trailing_white. The number_styles enumeration includes a composite style, octal_number, that consists of these three flags.

integer 

Indicates that the allow_leading_white, allow_trailing_white, and allow_leading_sign styles are used. This is a composite number style.

number 

Indicates that the allow_leading_white, allow_trailing_white, allow_leading_sign, allow_trailing_sign, allow_decimal_point, and allow_thousands styles are used. This is a composite number style.

fixed_point 

Indicates that the allow_leading_white, allow_trailing_white, allow_leading_sign, allow_decimal_point, and allow_exponent styles are used. This is a composite number style.

currency 

Indicates that all styles except allow_exponent, allow_hex_specifier, allow_binary_specifier and allow_octal_specifier are used. This is a composite number style.

any 

Indicates that all styles except allow_binary_specifier, allow_octal_specifier and allow_hex_specifier are used. This is a composite number style.

hex_number 

Indicates that the allow_leading_white, allow_trailing_white, and allow_hex_specifier styles are used. This is a composite number style.

binary_number 

Indicates that the allow_leading_white, allow_trailing_white, and allow_binary_specifier styles are used. This is a composite number style.

octal_number 

Indicates that the allow_leading_white, allow_trailing_white, and allow_octal_specifier styles are used. This is a composite number style.

◆ platform_id

enum xtd::platform_id
strong

#include <xtd.core/include/xtd/platform_id.h>

Identifies the operating system, or platform, supported by an assembly.

Namespace
xtd
Library
xtd.core
See also
operating_system
Enumerator
unknown 

The operating system is unknown.

win32s 

The operating system is Win32s. Win32s is a layer that runs on 16-bit versions of Windows to provide access to 32-bit applications.

win32_windows 

The operating system is Windows 95 or Windows 98.

win32_nt 

The operating system is Windows NT or later.

win_ce 

The operating system is Windows CE.

unix 

The operating system is Unix.

xbox 

The development platform is Xbox 360.

macos 

The operating system is Macintosh.

ios 

The operating system is iOS Apple.

android 

The operating system is Android.

linux 

The operating system is Linux.

tvos 

The operating system is tvOS Apple.

watchos 

The operating system is watchOS Apple.

other 

The operating system is other.

◆ process_priority_class

#include <xtd.core/include/xtd/diagnostics/process_priority_class.h>

Indicates the priority that the system associates with a process. This value, together with the priority value of each thread of the process, determines each thread's base priority level.

Header
#include <xtd/diagnostics/process_priority_class>
Namespace
xtd::diagnostics
Library
xtd.core
Remarks
A process priority class encompasses a range of thread priority levels. Threads with different priorities running in the process run relative to the process's priority class. The operating system uses the base-priority level of all executable threads to determine which thread gets the next slice of processor time.
Win32 uses four priority classes with seven base priority levels per class. Based on time elapsed or other boosts, the operating system can change the base priority level when a process needs to be put ahead of others for access to the processor. In addition, you can set PriorityBoostEnabled to temporarily boost the priority level of threads that have been taken out of the wait state. The priority is reset when the process returns to the wait state.
Enumerator
normal 

Specifies that the process has no special scheduling needs.

idle 

Specifies that the threads of this process run only when the system is idle, such as a screen saver. The threads of the process are preempted by the threads of any process running in a higher priority class. This priority class is inherited by child processes.

high 

Specifies that the process performs time-critical tasks that must be executed immediately, such as the Task List dialog, which must respond quickly when called by the user, regardless of the load on the operating system. The threads of the process preempt the threads of normal or idle priority class processes. Use extreme care when specifying High for the process's priority class, because a high priority class application can use nearly all available processor time.

real_time 

Specifies that the process has the highest possible priority. The threads of a process with RealTime priority preempt the threads of all other processes, including operating system processes performing important tasks. Thus, a RealTime priority process that executes for more than a very brief interval can cause disk caches not to flush or cause the mouse to be unresponsive.

below_normal 

Specifies that the process has priority above Idle but below Normal.

above_normal 

Specifies that the process has priority higher than Normal but lower than High.

◆ process_window_style

#include <xtd.core/include/xtd/diagnostics/process_window_style.h>

Specified how a new window should appear when the system starts a process.

Header
#include <xtd/diagnostics/process_window_style>
Namespace
xtd::diagnostics
Library
xtd.core
Enumerator
normal 

The normal, visible window style. The system displays a window with Normal style on the screen, in a default location. If a window is visible, the user can supply input to the window and view the window's output. Frequently, an application may initialize a new window to the Hidden style while it customizes the window's appearance, and then make the window style Normal.

hidden 

The hidden window style. A window can be either visible or hidden. The system displays a hidden window by not drawing it. If a window is hidden, it is effectively disabled. A hidden window can process messages from the system or from other windows, but it cannot process input from the user or display output. Frequently, an application may keep a new window hidden while it customizes the window's appearance, and then make the window style Normal. To use process_window_style.Hidden, the ProcessStartInfo.UseShellExecute property must be false.

minimized 

The minimized window style. By default, the system reduces a minimized window to the size of its taskbar button and moves the minimized window to the taskbar.

maximized 

The maximized window style. By default, the system enlarges a maximized window so that it fills the screen or, in the case of a child window, the parent window's client area. If the window has a title bar, the system automatically moves it to the top of the screen or to the top of the parent window's client area. Also, the system disables the window's sizing border and the window-positioning capability of the title bar so that the user cannot move the window by dragging the title bar.

◆ protocol_family

#include <xtd.core/include/xtd/net/sockets/protocol_family.h>

Specifies the type of protocol that an instance of the xtd::net::sockets::socket class can use.

enum class protocol_family
Header
#include <xtd/net/sockets/protocol_family>
Namespace
xtd::net::sockets
Library
xtd.core
Enumerator
unknown 

Unknown protocol.

unspecified 

Unspecified protocol.

unix 

Unix local to host protocol.

inter_network 

IP version 4 protocol.

imp_link 

ARPANET IMP protocol.

pup 

PUP protocols.

chaos 

MIT CHAOS protocols.

ns 

Xerox NS protocols.

ipx 

IPX or SPX protocol.

iso 

ISO protocols.

osi 

OSI protocols.

ecma 

European Computer Manufacturers Association (ECMA) protocol.

data_kit 

Datakit protocols.

ccitt 

CCITT protocols, such as X.25.

sna 

IBM SNA protocol.

dec_net 

DECnet protocol.

data_link 

Direct data-link interface protocol.

lat 

LAT protocol.

hyper_channel 

NSC Hyperchannel protocol.

apple_talk 

AppleTalk protocol.

net_bios 

NetBios protocol.

voice_view 

VoiceView protocol.

fire_fox 

FireFox protocol.

banyan 

Banyan protocol.

atm 

Native ATM services protocol.

inter_network_v6 

IP version 6 protocol.

cluster 

Microsoft cluster products protocol.

ieee12844 

IEEE 1284.4 workgroup protocol.

irda 

IrDA protocol.

network_designers 

Network Designers OSI gateway-enabled protocol.

max 

MAX protocol.

◆ protocol_type

#include <xtd.core/include/xtd/net/sockets/protocol_type.h>

Specifies the protocols that the xtd::net::sockets::socket class supports.

enum class protocol_type
Header
#include <xtd/net/sockets/protocol_type>
Namespace
xtd::net::sockets
Library
xtd.core
Enumerator
unknown 

Specifies an unknown protocol.

ip_v6_hop_by_hop_options 

IPv6 Hop by Hop Options header.

unspecified 

Unspecified Protocol.

ip 

Internet Protocol.

icmp 

Internet Control Message Protocol.

igmp 

Internet Group Management Protocol.

ggp 

Gateway To Gateway Protocol.

ip_v4 

Internet Protocol version 4.

tcp 

Transmission Control Protocol.

pup 

PARC Universal Packet Protocol.

udp 

User Datagram Protocol.

idp 

Internet Datagram Protocol.

ip_v6 

Internet Protocol version 6 (IPv6).

ip_v6_routing_header 

IPv6 Routing header.

ip_v6_fragment_header 

IPv6 Fragment header.

ip_sec_encapsulating_security_payload 

IPv6 Encapsulating Security Payload header.

ip_sec_authentication_header 

IPv6 Authentication header. For details, see RFC 2292 section 2.2.1, available at http://www.ietf.org.

icmp_v6 

Internet Control Message Protocol for IPv6.

ip_v6_no_next_header 

IPv6 No next header.

ip_v6_destination_options 

IPv6 Destination Options header.

nd 

Net Disk Protocol (unofficial).

raw 

Raw IP packet protocol.

ipx 

Internet Packet Exchange Protocol.

spx 

Sequenced Packet Exchange protocol.

spx_2 

Sequenced Packet Exchange version 2 protocol.

◆ search_option

#include <xtd.core/include/xtd/io/search_option.h>

Specifies whether to search the current directory, or the current directory and all subdirectories.

enum class search_option
Header
#include <xtd/io/search_option>
Namespace
xtd::io
Library
xtd.core
Remarks
If you choose xtd::io::search_option::all_directories in your search and the directory structure contains a link that creates a loop, the search operation enters an infinite loop.
Enumerator
top_directory_only 

Includes only the current directory in a search operation.

all_directories 

Includes the current directory and all its subdirectories in a search operation. This option includes reparse points such as mounted drives and symbolic links in the search.

◆ select_mode

#include <xtd.core/include/xtd/net/sockets/select_mode.h>

Defines the polling modes for the xtd::net::sockets::socket::poll method.

enum class select_mode
Header
#include <xtd/net/sockets/select_mode>
Namespace
xtd::net::sockets
Library
xtd.core
Remarks
The xtd::net::sockets::select_mode enumeration defines the polling modes that can be passed to the xtd::net::sockets::socket::poll method. Use the xtd::net::sockets::select_mode::select_read value to determine if a listening xtd::net::sockets::socket has incoming connection requests. Use the xtd::net::sockets::select_mode::select_write value to determine if a xtd::net::sockets::socket is writeable. Use the xtd::net::sockets::select_mode::select_error value to determine if there is an error condition present on the xtd::net::sockets::socket. For explanations of writeability, readability, and the presence of error conditions, see the xtd::net::sockets::socket::poll method.
Enumerator
select_read 

Read status mode.

select_write 

Write status mode.

select_error 

Error status mode.

◆ signal

enum xtd::signal
strong

#include <xtd.core/include/xtd/signal.h>

Specifies signals that can interrupt the current process.

Namespace
xtd
Library
xtd.core
Remarks
Each of the above values represents a constant, which represent different signals sent to the program.
For more information about signal, see std::signal.
Enumerator
abnormal_termination 

Abnormal termination triggered by abort call. Is equal to SIGABRT.

floating_point_exception 

Erroneous arithmetic operation such as divide by zero. Is equal to SIGFPE.

illegal_instruction 

Invalid program image, such as invalid instruction. Is equal to SIGILL.

interrupt 

external interrupt, usually initiated by the user. Is equal to SIGINT.

segmentation_violation 

Invalid memory access (segmentation fault). Is equal to SIGSEGV.

software_termination 

Termination request, sent to the program. Is equal to SIGTERM.

◆ socket_async_operation

#include <xtd.core/include/xtd/net/sockets/socket_async_operation.h>

The type of asynchronous socket operation most recently performed with this context object.

Header
#include <xtd/net/sockets/socket_async_operation>
Namespace
xtd::net::sockets
Library
xtd.core
Remarks
This type describes the asynchronous socket operation that was most recently completed using a xtd::net::sockets::socket_async_event_args object. The value of the xtd::net::sockets::socket_async_event_args::last_operation property is set to xtd::net::sockets::socket_async_operation::none until the xtd::net::sockets::socket_async_event_args instance is used to begin an asynchronous socket operation. The property will then be set to the type of asynchronous operation being performed. This type more easily facilitates using a single completion callback delegate for multiple kinds of asynchronous socket operations. This type is intended for use in the socket_async_callback completion routine.
The xtd::net::sockets::socket_async_operation type is used by the xtd::net::sockets::socket_async_event_args::last_operation property.
Enumerator
none 

none of the socket operations.

accept 

A socket accept operation.

connect 

A socket connect operation.

disconnect 

A socket disconnect operation.

receive 

A socket receive operation.

receive_from 

A socket receive_from operation.

receive_message_from 

A socket receive_message_from operation.

send 

A socket send operation.

send_packets 

A socket send_packets operation.

send_to 

A socket send_to operation.

◆ socket_error

#include <xtd.core/include/xtd/net/sockets/socket_error.h>

Defines error codes for the xtd::net::sockets::socket class.

enum class socket_error
Header
#include <xtd/net/sockets/socket_error>
Namespace
xtd::net::sockets
Library
xtd.core
Enumerator
sock_error 

An unspecified error occurred.

success 

Operation successful.

operation_aborted 

The overlapped operation was aborted due to the closure of the socket.

io_pending 

The application has initiated an overlapped operation that cannot be completed immediately.

interrupted 

A blocking call was canceled.

access_denied 

Access denied.

fault 

Invalid pointer address.

invalid_argument 

Invalid argument.

too_many_open_sockets 

Too many sockets opened.

would_block 

An operation on a nonblocking socket cannot be completed immediately.

in_progress 

A blocking operation is in progress.

already_in_progress 

The nonblocking socket has an operation in progress.

not_socket 

Operation attempted on a non-socket object.

destination_address_required 

Required destination missing.

message_size 

Datagram message is too long.

protocol_type 

The protocol type is incorrect.

protocol_option 

An unknown, invalid, or unsupported option or level was used.

protocol_not_supported 

The protocol is not implemented or has not been configured.

socket_not_supported 

The support for the specified socket type does not exist in this address family.

operation_not_supported 

The address family is not supported by the protocol family.

protocol_family_not_supported 

The protocol family is not implemented or has not been configured.

address_family_not_supported 

The address family specified is not supported. This error is returned if the IPv6 address family was specified and the IPv6 stack is not installed on the local machine. This error is returned if the IPv4 address family was specified and the IPv4 stack is not installed on the local machine.

address_already_in_use 

Only one use of an address is normally permitted.

address_not_available 

The selected IP address is not valid in this context.

network_down 

The network is not available.

network_unreachable 

No route to the remote host exists.

network_reset 

The application tried to set "keep alive" on a connection that timed out.

connection_aborted 

Connection aborted.

connection_reset 

Connection reset by the remote peer.

no_buffer_space_available 

No free buffer space available.

is_connected 

Already connected.

not_connected 

The socket is not connected.

shutdown 

A request to send or receive data was disallowed because the socket is closed.

timed_out 

The connection attempt timed out, or the connected host has failed to respond.

connection_refused 

The remote host is actively refusing a connection.

host_down 

The operation failed because the remote host is down.

host_unreachable 

There is no network route to the specified host.

process_limit 

Too many processes are using the underlying socket provider.

system_not_ready 

The network subsystem is unavailable.

version_not_supported 

The version of the underlying socket provider is out of range.

not_initialized 

The underlying socket provider has not been initialized.

disconnecting 

A graceful shutdown is in progress.

type_not_found 

The specified class was not found.

host_not_found 

No such host is known. The name is not an official host name or alias.

try_again 

The name of the host could not be resolved. Try again later.

no_recovery 

The error is unrecoverable or the requested database cannot be located.

no_data 

The requested name or IP address was not found on the name server.

◆ socket_flags

#include <xtd.core/include/xtd/net/sockets/socket_flags.h>

Specifies socket send and receive behaviors. This enumeration has a flags attribute that allows a bitwise combination of its member values.

enum class socket_flags
Header
#include <xtd/net/sockets/socket_flags>
Namespace
xtd::net::sockets
Library
xtd.core
Enumerator
none 

Use no flags for this call.

out_of_band 

Process out-of-band data.

peek 

Peek at the incoming message.

dont_route 

Send without using routing tables.

max_io_vector_length 

Provides a standard value for the number of WSABUF structures that are used to send and receive data.

truncated 

The message was too large to fit into the specified buffer and was truncated.

control_data_truncated 

Indicates that the control data did not fit into an internal 64-KB buffer and was truncated.

broadcast 

Indicates a broadcast packet.

multicast 

Indicates a multicast packet.

partial 

Partial send or receive for message.

◆ socket_information_options

#include <xtd.core/include/xtd/net/sockets/socket_information_options.h>

Describes states for a xtd::net::sockets::socket. This enumeration has a flags attribute that allows a bitwise combination of its member values.

Header
#include <xtd/net/sockets/socket_information_options>
Namespace
xtd::net::sockets
Library
xtd.core
Enumerator
none 

Use no flags for this call.

non_blocking 

The Socket is nonblocking.

connected 

The Socket is connected.

listening 

The Socket is listening for new connections.

use_only_overlapped_io 

The Socket uses overlapped I/O.

◆ socket_option_level

#include <xtd.core/include/xtd/net/sockets/socket_option_level.h>

Defines socket option levels for the xtd::net::sockets::socket::set_socket_option and xtd::net::sockets::socket::get_socket_option methods.

Header
#include <xtd/net/sockets/socket_option_level>
Namespace
xtd::net::sockets
Library
xtd.core
Remarks
The xtd::net::sockets::socket_option_level enumeration defines the socket option levels that can be passed to the xtd::net::sockets::socket::set_socket_option and xtd::net::sockets::socket::get_socket_option methods. xtd::net::sockets::socket_option_name enumerated values are grouped by xtd::net::sockets::socket_option_level.
Enumerator
socket 

Socket options apply to all sockets.

ip 

Socket options apply only to IP sockets.

ip_v6 

Socket options apply only to IPv6 sockets.

tcp 

Socket options apply only to TCP sockets.

udp 

Socket options apply only to UDP sockets.

◆ socket_option_name

#include <xtd.core/include/xtd/net/sockets/socket_option_name.h>

Defines configuration option names.

Header
#include <xtd/net/sockets/socket_option_name>
Namespace
xtd::net::sockets
Library
xtd.core
Remarks
The xtd::net::sockets::socket_option_name enumeration defines the name of each xtd::net::sockets::socket configuration option. Sockets can be configured with the xtd::net::sockets::socket::set_socket_option method.
Enumerator
debug 

Record debugging information.

accept_connection 

The socket is listening.

reuse_address 

Allows the socket to be bound to an address that is already in use.

keep_alive 

Use keep-alive.

dont_route 

Do not route; send the packet directly to the interface addresses.

broadcast 

Permit sending broadcast messages on the socket.

use_loopback 

Bypass hardware when possible.

linger 

Linger on close if unsent data is present.

out_of_band_inline 

Receives out-of-band data in the normal data stream.

dont_linger 

Close the socket gracefully without lingering.

exclusive_address_use 

Enables a socket to be bound for exclusive access.

send_buffer 

Specifies the total per-socket buffer space reserved for sends. This is unrelated to the maximum message size or the size of a TCP window.

receive_buffer 

Specifies the total per-socket buffer space reserved for receives. This is unrelated to the maximum message size or the size of a TCP window.

send_low_water 

Specifies the low water mark for xtd::net::sockets::socket::send operations.

receive_low_water 

Specifies the low water mark for xtd::net::sockets::socket::receive operations.

send_timeout 

Send a time-out. This option applies only to synchronous methods; it has no effect on asynchronous methods such as the xtd::net::sockets::socket::begin_send method.

receive_timeout 

Receive a time-out. This option applies only to synchronous methods; it has no effect on asynchronous methods such as the xtd::net::sockets::socket::begin_send method.

error 

Gets the error status and clear.

type 

Gets the socket type.

max_connections 

Not supported; will throw a xtd::net::sockets::socket_exception exception if used.

ip_options 

Specifies the IP options to be inserted into outgoing datagrams.

header_included 

Indicates that the application provides the IP header for outgoing datagrams.

type_of_service 

Change the IP header type of the service field.

ip_time_to_live 

Sets the IP header Time-to-Live field.

multicast_interface 

Sets the interface for outgoing multicast packets.

multicast_time_to_live 

An IP multicast Time to Live.

multicast_loopback 

An IP multicast loopback.

add_membership 

Add an IP group membership.

drop_membership 

Drop an IP group membership.

dont_fragment 

Do not fragment IP datagrams.

add_source_membership 

Join a source group.

drop_source_membership 

Drop a source group.

block_source 

Block data from a source.

unblock_source 

Unblock a previously blocked source.

packet_information 

Return information about received packets.

hop_limit 

Specifies the maximum number of router hops for an Internet Protocol version 6 (IPv6) packet. This is similar to Time to Live (TTL) for Internet Protocol version 4.

ip_protection_level 

Enables restriction of a IPv6 socket to a specified scope, such as addresses with the same link local or site local prefix.This socket option enables applications to place access restrictions on IPv6 sockets. Such restrictions enable an application running on a private LAN to simply and robustly harden itself against external attacks. This socket option widens or narrows the scope of a listening socket, enabling unrestricted access from public and private users when appropriate, or restricting access only to the same site, as required. This socket option has defined protection levels specified in the xtd::net::sockets::ip_protection_level enumeration.

ip_v6_only 

Indicates if a socket created for the AF_INET6 address family is restricted to IPv6 communications only. Sockets created for the AF_INET6 address family may be used for both IPv6 and IPv4 communications. Some applications may want to restrict their use of a socket created for the AF_INET6 address family to IPv6 communications only. When this value is non-zero (the default on Windows), a socket created for the AF_INET6 address family can be used to send and receive IPv6 packets only. When this value is zero, a socket created for the AF_INET6 address family can be used to send and receive packets to and from an IPv6 address or an IPv4 address. Note that the ability to interact with an IPv4 address requires the use of IPv4 mapped addresses. This socket option is supported on Windows Vista or later.

no_delay 

Disables the Nagle algorithm for send coalescing.

bsd_urgent 

Use urgent data as defined in RFC-1222. This option can be set only once; after it is set, it cannot be turned off.

expedited 

Use expedited data as defined in RFC-1222. This option can be set only once; after it is set, it cannot be turned off.

no_checksum 

Send UDP datagrams with checksum set to zero.

checksum_coverage 

Sets or get the UDP checksum coverage.

update_accept_context 

Updates an accepted socket's properties by using those of an existing socket. This is equivalent to using the Winsock2 SO_UPDATE_ACCEPT_CONTEXT socket option and is supported only on connection-oriented sockets.

update_connect_context 

Updates a connected socket's properties by using those of an existing socket. This is equivalent to using the Winsock2 SO_UPDATE_CONNECT_CONTEXT socket option and is supported only on connection-oriented sockets.

◆ socket_shutdown

#include <xtd.core/include/xtd/net/sockets/socket_shutdown.h>

Defines constants that are used by the xtd::net::sockets::socket::shutdown method.

enum class socket_shutdown
Header
#include <xtd/net/sockets/socket_shutdown>
Namespace
xtd::net::sockets
Library
xtd.core
Remarks
The xtd::net::sockets::socket_shutdown enumeration defines the values that can be passed to the xtd::net::sockets::socket::shutdown method.
Enumerator
receive 

Disables a xtd::net::sockets::socket for receiving. This field is constant.

send 

Disables a xtd::net::sockets::socket for sending. This field is constant.

both 

Disables a xtd::net::sockets::socket for both sending and receiving. This field is constant.

◆ socket_type

#include <xtd.core/include/xtd/net/sockets/socket_type.h>

Specifies the type of socket that an instance of the xtd::net::sockets::socket class represents.

enum class socket_type
Header
#include <xtd/net/sockets/socket_type>
Namespace
xtd::net::sockets
Library
xtd.core
Remarks
Before a xtd::net::sockets::socket can send and receive data, it must first be created using an xtd::net::sockets::address_family, a xtd::net::sockets::socket_type, and a xtd::net::sockets::protocol_type. The xtd::net::sockets::socket_type enumeration provides several options for defining the type of xtd::net::sockets::socket that you intend to open.
Note
xtd::net::sockets::socket_type will sometimes implicitly indicate which xtd::net::sockets::protocol_type will be used within an xtd::net::sockets::address_family. For example when the xtd::net::sockets::socket_type is xtd::net::sockets::socket_typedgram, the xtd::net::sockets::protocol_type is always xtd::net::sockets::protocol_type::udp. When the xtd::net::sockets::socket_type is xtd::net::sockets::socket_type::stream, the xtd::net::sockets::protocol_type is always xtd::net::sockets::protocol_type::tcp. If you try to create a xtd::net::sockets::socket with an incompatible combination, xtd::net::sockets::socket will throw a xtd::net::sockets::socket_exception.
Enumerator
unknown 

Specifies an unknown xtd::net::sockets::socket type.

stream 

Supports reliable, two-way, connection-based byte streams without the duplication of data and without preservation of boundaries. A xtd::net::sockets::socket of this type communicates with a single peer and requires a remote host connection before communication can begin. xtd::net::sockets::socket_types::stream uses the Transmission Control Protocol (xtd::net::sockets::protocol_type::tcp) and the xtd::net::sockets::address_family::inter_network address family.

dgram 

Supports datagrams, which are connectionless, unreliable messages of a fixed (typically small) maximum length. Messages might be lost or duplicated and might arrive out of order. A xtd::net::sockets::socket of type xtd::net::sockets::socket_type::dgram requires no connection prior to sending and receiving data, and can communicate with multiple peers. xtd::net::sockets::socket_type::dgram uses the Datagram Protocol (xtd::net::sockets::protocol_type::udp) and the xtd::net::sockets::address_family::inter_network address family.

raw 

Supports access to the underlying transport protocol. Using the xtd::net::sockets::socket_type::raw, you can communicate using protocols like Internet Control Message Protocol (xtd::net::sockets::protocol_type::icmp) and Internet Group Management Protocol (xtd::net::sockets::protocol_type::Igmp). Your application must provide a complete IP header when sending. Received datagrams return with the IP header and options intact.

rdm 

Supports connectionless, message-oriented, reliably delivered messages, and preserves message boundaries in data. xtd::net::sockets::socket_type::rdm (Reliably Delivered Messages) messages arrive unduplicated and in order. Furthermore, the sender is notified if messages are lost. If you initialize a xtd::net::sockets::socket using xtd::net::sockets::socket_type::rdm, you do not require a remote host connection before sending and receiving data. With xtd::net::sockets::socket_typerdm, you can communicate with multiple peers.

seqpacket 

Provides connection-oriented and reliable two-way transfer of ordered byte streams across a network. xtd::net::sockets::socket_type::seqpacket does not duplicate data, and it preserves boundaries within the data stream. A xtd::net::sockets::socket of type xtd::net::sockets::socket_type::seqpacket communicates with a single peer and requires a remote host connection before communication can begin.

◆ source_levels

#include <xtd.core/include/xtd/diagnostics/source_levels.h>

Specifies the levels of trace messages filtered by the source switch and event type filter. This enumeration has a flags attribute that allows a bitwise combination of its member values.

enum class source_levels
Header
#include <xtd/diagnostics/source_levels>
Namespace
xtd::diagnostics
Library
xtd.core
Remarks
The source levels identify the trace_event_type events that are to be traced. The source_switch class uses the source_levels enumeration to define the event level of the trace message to use for filtering messages to send to the trace listener.
Enumerator
off 

Does not allow any events through.

critical 

Allows only Critical events through.

error 

Allows critical and error events through.

warning 

Allows critical, error, and warning events through.

information 

Allows Critical, error, warning, and information events through.

verbose 

Allows critical, error, warning, information, and verbose events through.

activity_tracing 

Allows the stop, start, suspend, transfer, and resume events through.

all 

Allows all events through.

◆ string_comparison

#include <xtd.core/include/xtd/string_comparison.h>

Specifies the culture, case, and sort rules to be used by certain overloads of the xtd::ustring::compare method.

Namespace
xtd
Library
xtd.core
See also
xtd::ustring
Enumerator
ordinal 

Compare strings using ordinal (binary) sort rules.

ordinal_ignore_case 

Compare strings using ordinal (binary) sort rules and ignoring the case of the strings being compared.

◆ string_split_options

#include <xtd.core/include/xtd/string_split_options.h>

Specifies whether applicable xtd::ustring::split method overloads include or omit empty substrings from the return value.

Namespace
xtd
Library
xtd.core
See also
xtd::ustring
Enumerator
none 

The return value includes array elements that contain an empty string.

remove_empty_entries 

The return value does not include array elements that contain an empty string.

◆ synthesizer_state

#include <xtd.core/include/xtd/speech/synthesis/synthesizer_state.h>

Enumerates values for the state of the xtd::speech::synthesis::speech_synthesizer.

Header
#include <xtd/speech/synthesis/synthesizer_state>
Namespace
xtd::speech::synthesis
Library
xtd.core
Remarks
The xtd::speech::synthesis::speech_synthesizer::state property uses xtd::speech::synthesis::synthesizer_state to indicate the current state of the xtd::speech::synthesis::speech_synthesizer. See xtd::speech::synthesis::speech_synthesizer::state for an example.
The xtd::speech::synthesis::speech_synthesizer::previous_state and xtd::speech::synthesis::speech_synthesizer::state properties use xtd::speech::synthesis::synthesizer_state to indicate state of the xtd::speech::synthesis::speech_synthesizer when the xtd::speech::synthesis::speech_synthesizer::state_changed event is raised.
Enumerator
ready 

Indicates that the xtd::speech::synthesis::speech_synthesizer is ready to generate speech from a prompt.

speaking 

Indicates that the xtd::speech::synthesis::speech_synthesizer is speaking.

pause 

Indicates that the xtd::speech::synthesis::speech_synthesizer is paused.

◆ target_id

enum xtd::target_id
strong

#include <xtd.core/include/xtd/target_id.h>

Identifies the target, supported by an assembly.

Namespace
xtd
Library
xtd.core
See also
xtd::target_type
Enumerator
unknown 

The target is unknown.

console_application 

The target is console application.

gui_application 

The target is gui application.

test_application 

The target is test application.

interface_library 

The target is interface library.

module_library 

The target is module library.

shared_library 

The target is shared library.

static_library 

The target is static library.

custom_target 

The target is custom target.

◆ trace_event_type

#include <xtd.core/include/xtd/diagnostics/trace_event_type.h>

Identifies the type of event that has caused the trace.

enum class trace_event_type
Header
#include <xtd/diagnostics/trace_event_type>
Namespace
xtd::diagnostics
Library
xtd.core
See also
trace
Enumerator
critical 

Fatal error or application crash.

error 

Recoverable error.

warning 

Warning Noncritical problem.

information 

Informational message.

verbose 

Debugging trace.

start 

Starting of a logical operation.

stop 

Stopping of a logical operation.

suspend 

Suspension of a logical operation.

resume 

Resumption of a logical operation.

transfer 

Changing of correlation identity.

◆ trace_level

#include <xtd.core/include/xtd/diagnostics/trace_level.h>

Specifies what messages to output for the debug, trace and trace_switch classes.

enum class trace_level
Header
#include <xtd/diagnostics/trace_level>
Namespace
xtd::diagnostics
Library
xtd.core
Enumerator
off 

Output no tracing and debugging messages.

error 

Output error-handling messages.

warning 

Output warnings and error-handling messages.

info 

Output informational messages, warnings, and error-handling messages.

verbose 

Output all debugging and tracing messages.

◆ transmit_file_options

#include <xtd.core/include/xtd/net/sockets/transmit_file_options.h>

The TransmitFileOptions enumeration defines values used in file transfer requests.

Header
#include <xtd/net/sockets/transmit_file_options>
Namespace
xtd::net::sockets
Library
xtd.core
Remarks
This enumeration has a flags attribute that allows a bitwise combination of its member values.
Note
The flags xtd::net::sockets::transmit_file_options::disconnect and xtd::net::sockets::transmit_file_options::reuse_socket return the socket to a disconnected, reusable state after the file has been transmitted. These flags should not be used on a socket where quality of service (QOS) has been requested, because the service provider might immediately delete any quality of service associated with the socket before the file transfer has completed. The best approach for a QOS-enabled socket is to call xtd::net::sockets::socket::close when the file transfer has completed, rather than relying on these flags.
Enumerator
use_default_worker_thread 

Use the default thread to process long file transfer requests.

disconnect 

Start a transport-level disconnect after all the file data has been queued for transmission. When used with xtd::net::sockets::transmit_file_options::reuse_socket, these flags return the socket to a disconnected, reusable state after the file has been transmitted.

reuse_socket 

The socket handle may be reused when the request completes. This flag is valid only if xtd::net::sockets::transmit_file_options::disconnect is also specified. When used with xtd::net::sockets::transmit_file_options::disconnect, these flags return the socket to a disconnected, reusable state after the file has been transmitted.

write_behind 

Complete the file transfer request immediately, without pending. If this flag is specified and the file transfer succeeds, the data has been accepted by the system but not necessarily acknowledged by the remote end. Do not use this flag with the xtd::net::sockets::transmit_file_options::disconnect and xtd::net::sockets::transmit_file_options::reuse_socket flags.

use_system_thread 

Use system threads to process long file transfer requests.

use_kernel_apc 

Use kernel asynchronous procedure calls (APCs) instead of worker threads to process long file transfer requests. Long requests are defined as requests that require more than a single read from the file or a cache; the request therefore depends on the size of the file and the specified length of the send packet.

◆ uri_components

enum xtd::uri_components
strong

#include <xtd.core/include/xtd/uri_components.h>

This enumeration has a Flags attribute that allows a bitwise combination of its member values.

Namespace
xtd
Library
xtd.core
Remarks
This enumeration is used to identify the parts of a xtd::uri. This enumeration is used with the xtd::uri::get_components method.
Enumerator
none 

None data.

scheme 

The xtd::uri::scheme data.

user_info 

The xtd::uri::user_info data.

host 

The xtd::uri::host data.

port 

The xtd::uri::port data.

path 

The xtd::uri::local_path data.

query 

The xtd::uri::query data.

fragment 

The xtd::uri::fragment data.

strong_port 

The xtd::uri::port data. If no port data is in the xtd::uri and a default port has been assigned to the xtd::uri::scheme, the default port is returned. If there is no default port, -1 is returned.

keep_delimiter 

Specifies that the delimiter should be included.

host_and_port 

The xtd::uri::host and xtd::uri::port data. If no port data is in the Uri and a default port has been assigned to the xtd::uri::scheme, the default port is returned. If there is no default port, -1 is returned.

strong_authority 

The xtd::uri::user_info, host, and port data. If no port data is in the Uri and a default port has been assigned to the scheme, the default port is returned. If there is no default port, -1 is returned.

absolute_uri 

The xtd::uri::scheme, xtd::uri::user_info, xtd::uri::host, port, xtd::uri::local_path, xtd::uri::query, and xtd::uri::fragment data.

path_and_query 

The xtd::uri::local_path and xtd::uri::query data. Also see xtd::uri::path_and_query.

http_request_url 

The xtd::uri::scheme, xtd::uri::host, xtd::uri::port, xtd::uri::local_path, and xtd::uri::query data.

scheme_and_server 

The xtd::uri::scheme, xtd::uri::host, and xtd::uri::port data.

serialization_info_string 

The complete xtd::uri context that is needed for xtd::uri Serializers. The context includes the IPv6 scope.

◆ uri_format

enum xtd::uri_format
strong

#include <xtd.core/include/xtd/uri_format.h>

Controls how URI information is escaped.

Namespace
xtd
Library
xtd.core
Remarks
This enumeration is used by the xtd::uri::get_components method to specify the level of character escaping in the returned URI.
RFC 2396 defines the standard escaping for URIs, and is available at https://rfc-editor.org.
xtd::uri_format::safe_unescaped leaves the following characters escaped if the character has a reserved meaning in the requested xtd::uri_components: "%", "#", "?", "/", "\", and "@".
Enumerator
safe_unescaped 

Characters that have a reserved meaning in the requested URI components remain escaped. All others are not escaped. See Remarks.

unescaped 

No escaping is performed.

uri_escaped 

Escaping is performed according to the rules in RFC 2396.

◆ uri_host_name_type

#include <xtd.core/include/xtd/uri_host_name_type.h>

Defines host name types for the xtd::uri::check_host_name method.

Namespace
xtd
Library
xtd.core
Remarks
The xtd::uri_host_name_type enumeration defines the values that the xtd::uri::check_host_name method can return.
Enumerator
unknown 

The type of the host name is not supplied.

basic 

The host is set, but the type cannot be determined.

dns 

The host name is a domain name system (DNS) style host name.

ip_v4 

The Uri is a relative xtd::uri.

ip_v6 

The Uri is a relative xtd::uri.

◆ uri_kind

enum xtd::uri_kind
strong

#include <xtd.core/include/xtd/uri_kind.h>

Defines the kinds of Uris for the xtd::uri::is_well_formed_uri_string and several xtd::uri methods.

Namespace
xtd
Library
xtd.core
Remarks
Absolute URIs are characterized by a complete reference to the resource (example: http://www.contoso.com/index.html), while a relative URI depends on a previously defined base URI (example: /index.html).
The following list shows some APIs that use the xtd::uri_kind enum:
  • xtd::uri::uri(const xtd::utring&, xtd::uri_kind)
  • xtd::uri::is_well_formed_uri_string(const xtd::utring&, xtd::uri_kind)
  • xtd::uri::try_create(const xtd::utring&, xtd::uri_kind, xtd::uri&)
Enumerator
relative_or_absolute 

The kind of the xtd::uri is indeterminate.

absolute 

The xtd::uri is an absolute xtd::uri.

relative 

The xtd::uri is a relative xtd::uri.

◆ uri_partial

enum xtd::uri_partial
strong

#include <xtd.core/include/xtd/uri_partial.h>

Defines the parts of a URI for the xtd::uri::get_left_part method.

Namespace
xtd
Library
xtd.core
Remarks
The xtd::uri_partial enumeration defines the values that can be passed to the xtd::uri::get_lLeft_part method.
Enumerator
scheme 

The scheme segment of the URI.

authority 

The scheme and authority segments of the URI.

path 

The scheme, authority, and path segments of the URI.

query 

The scheme, authority, path, and query segments of the URI.

Function Documentation

◆ as() [1/51]

template<typename new_type_t >
new_type_t xtd::as ( std::any  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = 42;
int result = as<int>(value);

◆ as() [2/51]

template<typename new_type_t >
new_type_t xtd::as ( bool  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
int result = as<int>(value);

◆ as() [3/51]

template<typename new_type_t >
new_type_t xtd::as ( xtd::byte  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
float result = as<float>(value);

◆ as() [4/51]

template<typename new_type_t >
new_type_t xtd::as ( char  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
int result = as<int>(value);

◆ as() [5/51]

template<typename new_type_t >
new_type_t xtd::as ( char8  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
int result = as<int>(value);

◆ as() [6/51]

template<typename new_type_t >
new_type_t xtd::as ( char16  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u'a';
int result = as<int>(value);

◆ as() [7/51]

template<typename new_type_t >
new_type_t xtd::as ( char32  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = U'a';
int result = as<int>(value);

◆ as() [8/51]

template<typename new_type_t >
new_type_t xtd::as ( wchar  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = L'a';
int result = as<int>(value);

◆ as() [9/51]

template<typename new_type_t >
new_type_t xtd::as ( decimal  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.0l;
int result = as<int>(value);

◆ as() [10/51]

template<typename new_type_t >
new_type_t xtd::as ( double  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.0;
int result = as<int>(value);

◆ as() [11/51]

template<typename new_type_t >
new_type_t xtd::as ( float  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.0f;
int result = as<int>(value);

◆ as() [12/51]

template<typename new_type_t >
new_type_t xtd::as ( int16  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
float result = as<float>(value);

◆ as() [13/51]

template<typename new_type_t >
new_type_t xtd::as ( int32  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
float result = as<float>(value);

◆ as() [14/51]

template<typename new_type_t >
new_type_t xtd::as ( int64  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42;
float result = as<float>(value);

◆ as() [15/51]

template<typename new_type_t >
new_type_t xtd::as ( slong  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42;
float result = as<float>(value);

◆ as() [16/51]

template<typename new_type_t >
new_type_t xtd::as ( sbyte  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42;
float result = as<float>(value);

◆ as() [17/51]

template<typename new_type_t >
new_type_t xtd::as ( uint16  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42;
float result = as<float>(value);

◆ as() [18/51]

template<typename new_type_t >
new_type_t xtd::as ( uint32  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42;
float result = as<float>(value);

◆ as() [19/51]

template<typename new_type_t >
new_type_t xtd::as ( uint64  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42;
float result = as<float>(value);

◆ as() [20/51]

template<typename new_type_t >
new_type_t xtd::as ( xtd::ulong  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42;
float result = as<float>(value);

◆ as() [21/51]

template<typename new_type_t >
new_type_t xtd::as ( const xtd::ustring value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
object result = as<object>(value);

◆ as() [22/51]

template<typename new_type_t >
new_type_t xtd::as ( xtd::ustring value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
object result = as<object>(value);

◆ as() [23/51]

template<typename new_type_t >
new_type_t xtd::as ( const std::string &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core

◆ as() [24/51]

template<typename new_type_t >
new_type_t xtd::as ( std::string &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core

◆ as() [25/51]

template<typename new_type_t >
new_type_t xtd::as ( const std::u8string &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core

◆ as() [26/51]

template<typename new_type_t >
new_type_t xtd::as ( std::u8string &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core

◆ as() [27/51]

template<typename new_type_t >
new_type_t xtd::as ( const std::u16string &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core

◆ as() [28/51]

template<typename new_type_t >
new_type_t xtd::as ( std::u16string &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core

◆ as() [29/51]

template<typename new_type_t >
new_type_t xtd::as ( const std::u32string &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core

◆ as() [30/51]

template<typename new_type_t >
new_type_t xtd::as ( std::u32string &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core

◆ as() [31/51]

template<typename new_type_t >
new_type_t xtd::as ( const std::wstring &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core

◆ as() [32/51]

template<typename new_type_t >
new_type_t xtd::as ( std::wstring &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Exceptions
xtd::invalid_cast_exceptionvalue bad type
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core

◆ as() [33/51]

template<typename new_type_t >
new_type_t xtd::as ( const char *  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "Gammasoft";
intptr result = as<intptr>(value);

◆ as() [34/51]

template<typename new_type_t >
new_type_t xtd::as ( char *  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "Gammasoft";
intptr result = as<intptr>(value);

◆ as() [35/51]

template<typename new_type_t >
new_type_t xtd::as ( const char8 value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"Gammasoft";
intptr result = as<intptr>(value);

◆ as() [36/51]

template<typename new_type_t >
new_type_t xtd::as ( char8 value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"Gammasoft";
intptr result = as<intptr>(value);

◆ as() [37/51]

template<typename new_type_t >
new_type_t xtd::as ( const char16 value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"Gammasoft";
intptr result = as<intptr>(value);

◆ as() [38/51]

template<typename new_type_t >
new_type_t xtd::as ( char16 value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"Gammasoft";
intptr result = as<intptr>(value);

◆ as() [39/51]

template<typename new_type_t >
new_type_t xtd::as ( const char32 value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"Gammasoft";
intptr result = as<intptr>(value);

◆ as() [40/51]

template<typename new_type_t >
new_type_t xtd::as ( char32 value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"Gammasoft";
intptr result = as<intptr>(value);

◆ as() [41/51]

template<typename new_type_t >
new_type_t xtd::as ( const wchar value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"Gammasoft";
intptr result = as<intptr>(value);

◆ as() [42/51]

template<typename new_type_t >
new_type_t xtd::as ( wchar value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"Gammasoft";
intptr result = as<intptr>(value);

◆ as() [43/51]

template<typename new_type_t , typename current_type_t >
const new_type_t& xtd::as ( const current_type_t &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const button* value = new xtd::forms::button();
const control& result = as<xtd::forms::control>(*value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ as() [44/51]

template<typename new_type_t , typename current_type_t >
new_type_t& xtd::as ( current_type_t &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
button* value = new xtd::forms::button();
control& result = as<xtd::forms::control>(*value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ as() [45/51]

template<typename new_type_t , typename current_type_t >
const new_type_t* xtd::as ( const current_type_t *  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const button* value = new xtd::forms::button();
const control* result = as<xtd::forms::control>(value);

◆ as() [46/51]

template<typename new_type_t , typename current_type_t >
new_type_t* xtd::as ( current_type_t *  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
button* value = new xtd::forms::button();
control* result = as<xtd::forms::control>(value);

◆ as() [47/51]

template<typename new_type_t , typename current_type_t >
std::unique_ptr<new_type_t> xtd::as ( std::unique_ptr< current_type_t > &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::unique_ptr<button> value = std::make_unique<xtd::forms::button>();
std::unique_ptr<control> result = as<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ as() [48/51]

template<typename new_type_t , typename current_type_t >
std::unique_ptr<new_type_t> xtd::as ( std::unique_ptr< current_type_t > &&  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::unique_ptr<control> result = as<xtd::forms::control>(std::make_unique<xtd::forms::button>());
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ as() [49/51]

template<typename new_type_t , typename current_type_t >
std::shared_ptr<new_type_t> xtd::as ( const std::shared_ptr< current_type_t > &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const std::shared_ptr<button> value = std::make_shared<xtd::forms::button>();
const std::shared_ptr<control> result = as<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ as() [50/51]

template<typename new_type_t , typename current_type_t >
std::shared_ptr<new_type_t> xtd::as ( std::shared_ptr< current_type_t > &  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::shared_ptr<control> result = as<xtd::forms::control>(std::make_shared<xtd::forms::button>());
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ as() [51/51]

template<typename new_type_t , typename current_type_t >
std::shared_ptr<new_type_t> xtd::as ( std::shared_ptr< current_type_t > &&  value)

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const std::shared_ptr<button> value = std::make_shared<xtd::forms::button>();
const std::shared_ptr<control> result = as<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ as< bool >() [1/36]

template<>
bool xtd::as< bool > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
bool result = as<bool>(value);
Examples:
form_and_messages.cpp.

◆ as< bool >() [2/36]

template<>
bool xtd::as< bool > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
bool result = as<bool>(value);

◆ as< bool >() [3/36]

template<>
bool xtd::as< bool > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
bool result = as<bool>(value);

◆ as< bool >() [4/36]

template<>
bool xtd::as< bool > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
bool result = as<bool>(value);

◆ as< bool >() [5/36]

template<>
bool xtd::as< bool > ( char8  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
bool result = as<bool>(value);

◆ as< bool >() [6/36]

template<>
bool xtd::as< bool > ( char16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
bool result = as<bool>(value);

◆ as< bool >() [7/36]

template<>
bool xtd::as< bool > ( char32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
bool result = as<bool>(value);

◆ as< bool >() [8/36]

template<>
bool xtd::as< bool > ( wchar  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
bool result = as<bool>(value);

◆ as< bool >() [9/36]

template<>
bool xtd::as< bool > ( decimal  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
bool result = as<bool>(value);

◆ as< bool >() [10/36]

template<>
bool xtd::as< bool > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
bool result = as<bool>(value);

◆ as< bool >() [11/36]

template<>
bool xtd::as< bool > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
bool result = as<bool>(value);

◆ as< bool >() [12/36]

template<>
bool xtd::as< bool > ( int16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
bool result = as<bool>(value);

◆ as< bool >() [13/36]

template<>
bool xtd::as< bool > ( int32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
bool result = as<bool>(value);

◆ as< bool >() [14/36]

template<>
bool xtd::as< bool > ( int64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
bool result = as<bool>(value);

◆ as< bool >() [15/36]

template<>
bool xtd::as< bool > ( slong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
bool result = as<bool>(value);

◆ as< bool >() [16/36]

template<>
bool xtd::as< bool > ( sbyte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
bool result = as<bool>(value);

◆ as< bool >() [17/36]

template<>
bool xtd::as< bool > ( uint16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
bool result = as<bool>(value);

◆ as< bool >() [18/36]

template<>
bool xtd::as< bool > ( uint32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
bool result = as<bool>(value);

◆ as< bool >() [19/36]

template<>
bool xtd::as< bool > ( uint64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
bool result = as<bool>(value);

◆ as< bool >() [20/36]

template<>
bool xtd::as< bool > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
bool result = as<bool>(value);

◆ as< bool >() [21/36]

template<>
bool xtd::as< bool > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
bool result = as<bool>(value);

◆ as< bool >() [22/36]

template<>
bool xtd::as< bool > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
bool result = as<bool>(value);

◆ as< bool >() [23/36]

template<>
bool xtd::as< bool > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
bool result = as<bool>(value);

◆ as< bool >() [24/36]

template<>
bool xtd::as< bool > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
bool result = as<bool>(value);

◆ as< bool >() [25/36]

template<>
bool xtd::as< bool > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
bool result = as<bool>(value);

◆ as< bool >() [26/36]

template<>
bool xtd::as< bool > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
bool result = as<bool>(value);

◆ as< bool >() [27/36]

template<>
bool xtd::as< bool > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
bool result = as<bool>(value);

◆ as< bool >() [28/36]

template<>
bool xtd::as< bool > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
bool result = as<bool>(value);

◆ as< bool >() [29/36]

template<>
bool xtd::as< bool > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
bool result = as<bool>(value);

◆ as< bool >() [30/36]

template<>
bool xtd::as< bool > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
bool result = as<bool>(value);

◆ as< bool >() [31/36]

template<>
bool xtd::as< bool > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
bool result = as<bool>(value);

◆ as< bool >() [32/36]

template<>
bool xtd::as< bool > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
bool result = as<bool>(value);

◆ as< bool >() [33/36]

template<>
bool xtd::as< bool > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
bool result = as<bool>(value);

◆ as< bool >() [34/36]

template<>
bool xtd::as< bool > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
bool result = as<bool>(value);

◆ as< bool >() [35/36]

template<>
bool xtd::as< bool > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
bool result = as<bool>(value);

◆ as< bool >() [36/36]

template<>
bool xtd::as< bool > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
bool result = as<bool>(value);

◆ as< char >() [1/36]

template<>
char xtd::as< char > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
char result = as<char>(value);

◆ as< char >() [2/36]

template<>
char xtd::as< char > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
char result = as<char>(value);

◆ as< char >() [3/36]

template<>
char xtd::as< char > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
char result = as<char>(value);

◆ as< char >() [4/36]

template<>
char xtd::as< char > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
char result = as<char>(value);

◆ as< char >() [5/36]

template<>
char xtd::as< char > ( char8  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
char result = as<char>(value);

◆ as< char >() [6/36]

template<>
char xtd::as< char > ( char16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
char result = as<char>(value);

◆ as< char >() [7/36]

template<>
char xtd::as< char > ( char32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
char result = as<char>(value);

◆ as< char >() [8/36]

template<>
char xtd::as< char > ( wchar  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
char result = as<char>(value);

◆ as< char >() [9/36]

template<>
char xtd::as< char > ( decimal  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
char result = as<char>(value);

◆ as< char >() [10/36]

template<>
char xtd::as< char > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
char result = as<char>(value);

◆ as< char >() [11/36]

template<>
char xtd::as< char > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
char result = as<char>(value);

◆ as< char >() [12/36]

template<>
char xtd::as< char > ( int16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
char result = as<char>(value);

◆ as< char >() [13/36]

template<>
char xtd::as< char > ( int32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
char result = as<char>(value);

◆ as< char >() [14/36]

template<>
char xtd::as< char > ( int64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
char result = as<char>(value);

◆ as< char >() [15/36]

template<>
char xtd::as< char > ( slong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
char result = as<char>(value);

◆ as< char >() [16/36]

template<>
char xtd::as< char > ( sbyte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
char result = as<char>(value);

◆ as< char >() [17/36]

template<>
char xtd::as< char > ( uint16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
char result = as<char>(value);

◆ as< char >() [18/36]

template<>
char xtd::as< char > ( uint32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
char result = as<char>(value);

◆ as< char >() [19/36]

template<>
char xtd::as< char > ( uint64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
char result = as<char>(value);

◆ as< char >() [20/36]

template<>
char xtd::as< char > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
char result = as<char>(value);

◆ as< char >() [21/36]

template<>
char xtd::as< char > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
char result = as<char>(value);

◆ as< char >() [22/36]

template<>
char xtd::as< char > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
char result = as<char>(value);

◆ as< char >() [23/36]

template<>
char xtd::as< char > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
char result = as<char>(value);

◆ as< char >() [24/36]

template<>
char xtd::as< char > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
char result = as<char>(value);

◆ as< char >() [25/36]

template<>
char xtd::as< char > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
char result = as<char>(value);

◆ as< char >() [26/36]

template<>
char xtd::as< char > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
char result = as<char>(value);

◆ as< char >() [27/36]

template<>
char xtd::as< char > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
char result = as<char>(value);

◆ as< char >() [28/36]

template<>
char xtd::as< char > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
char result = as<char>(value);

◆ as< char >() [29/36]

template<>
char xtd::as< char > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
char result = as<char>(value);

◆ as< char >() [30/36]

template<>
char xtd::as< char > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
char result = as<char>(value);

◆ as< char >() [31/36]

template<>
char xtd::as< char > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
char result = as<char>(value);

◆ as< char >() [32/36]

template<>
char xtd::as< char > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
char result = as<char>(value);

◆ as< char >() [33/36]

template<>
char xtd::as< char > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
char result = as<char>(value);

◆ as< char >() [34/36]

template<>
char xtd::as< char > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
char result = as<char>(value);

◆ as< char >() [35/36]

template<>
char xtd::as< char > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
char result = as<char>(value);

◆ as< char >() [36/36]

template<>
char xtd::as< char > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
char result = as<char>(value);

◆ as< char16 >() [1/36]

template<>
char16 xtd::as< char16 > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
char16 result = as<char16>(value);

◆ as< char16 >() [2/36]

template<>
char16 xtd::as< char16 > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
char16 result = as<char16>(value);

◆ as< char16 >() [3/36]

template<>
char16 xtd::as< char16 > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
char16 result = as<char16>(value);

◆ as< char16 >() [4/36]

template<>
char16 xtd::as< char16 > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
char16 result = as<char16>(value);

◆ as< char16 >() [5/36]

template<>
char16 xtd::as< char16 > ( char8  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
char16 result = as<char16>(value);

◆ as< char16 >() [6/36]

template<>
char16 xtd::as< char16 > ( char16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
char16 result = as<char16>(value);

◆ as< char16 >() [7/36]

template<>
char16 xtd::as< char16 > ( char32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
char16 result = as<char16>(value);

◆ as< char16 >() [8/36]

template<>
char16 xtd::as< char16 > ( wchar  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
char16 result = as<char16>(value);

◆ as< char16 >() [9/36]

template<>
char16 xtd::as< char16 > ( decimal  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
char16 result = as<char16>(value);

◆ as< char16 >() [10/36]

template<>
char16 xtd::as< char16 > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
char16 result = as<char16>(value);

◆ as< char16 >() [11/36]

template<>
char16 xtd::as< char16 > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
char16 result = as<char16>(value);

◆ as< char16 >() [12/36]

template<>
char16 xtd::as< char16 > ( int16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
char16 result = as<char16>(value);

◆ as< char16 >() [13/36]

template<>
char16 xtd::as< char16 > ( int32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
char16 result = as<char16>(value);

◆ as< char16 >() [14/36]

template<>
char16 xtd::as< char16 > ( int64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
char16 result = as<char16>(value);

◆ as< char16 >() [15/36]

template<>
char16 xtd::as< char16 > ( slong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
char16 result = as<char16>(value);

◆ as< char16 >() [16/36]

template<>
char16 xtd::as< char16 > ( sbyte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
char16 result = as<char16>(value);

◆ as< char16 >() [17/36]

template<>
char16 xtd::as< char16 > ( uint16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
char16 result = as<char16>(value);

◆ as< char16 >() [18/36]

template<>
char16 xtd::as< char16 > ( uint32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
char16 result = as<char16>(value);

◆ as< char16 >() [19/36]

template<>
char16 xtd::as< char16 > ( uint64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
char16 result = as<char16>(value);

◆ as< char16 >() [20/36]

template<>
char16 xtd::as< char16 > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
char16 result = as<char16>(value);

◆ as< char16 >() [21/36]

template<>
char16 xtd::as< char16 > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
char16 result = as<char16>(value);

◆ as< char16 >() [22/36]

template<>
char16 xtd::as< char16 > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
char16 result = as<char16>(value);

◆ as< char16 >() [23/36]

template<>
char16 xtd::as< char16 > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
char16 result = as<char16>(value);

◆ as< char16 >() [24/36]

template<>
char16 xtd::as< char16 > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
char16 result = as<char16>(value);

◆ as< char16 >() [25/36]

template<>
char16 xtd::as< char16 > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
char16 result = as<char16>(value);

◆ as< char16 >() [26/36]

template<>
char16 xtd::as< char16 > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
char16 result = as<char16>(value);

◆ as< char16 >() [27/36]

template<>
char16 xtd::as< char16 > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
char16 result = as<char16>(value);

◆ as< char16 >() [28/36]

template<>
char16 xtd::as< char16 > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
char16 result = as<char16>(value);

◆ as< char16 >() [29/36]

template<>
char16 xtd::as< char16 > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
char16 result = as<char16>(value);

◆ as< char16 >() [30/36]

template<>
char16 xtd::as< char16 > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
char16 result = as<char16>(value);

◆ as< char16 >() [31/36]

template<>
char16 xtd::as< char16 > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
char16 result = as<char16>(value);

◆ as< char16 >() [32/36]

template<>
char16 xtd::as< char16 > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
char16 result = as<char16>(value);

◆ as< char16 >() [33/36]

template<>
char16 xtd::as< char16 > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
char16 result = as<char16>(value);

◆ as< char16 >() [34/36]

template<>
char16 xtd::as< char16 > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
char16 result = as<char16>(value);

◆ as< char16 >() [35/36]

template<>
char16 xtd::as< char16 > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
char16 result = as<char16>(value);

◆ as< char16 >() [36/36]

template<>
char16 xtd::as< char16 > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
char16 result = as<char16>(value);

◆ as< char32 >() [1/36]

template<>
char32 xtd::as< char32 > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
char32 result = as<char32>(value);

◆ as< char32 >() [2/36]

template<>
char32 xtd::as< char32 > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
char32 result = as<char32>(value);

◆ as< char32 >() [3/36]

template<>
char32 xtd::as< char32 > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
char32 result = as<char32>(value);

◆ as< char32 >() [4/36]

template<>
char32 xtd::as< char32 > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
char32 result = as<char32>(value);

◆ as< char32 >() [5/36]

template<>
char32 xtd::as< char32 > ( char8  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
char32 result = as<char32>(value);

◆ as< char32 >() [6/36]

template<>
char32 xtd::as< char32 > ( char16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
char32 result = as<char32>(value);

◆ as< char32 >() [7/36]

template<>
char32 xtd::as< char32 > ( char32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
char32 result = as<char32>(value);

◆ as< char32 >() [8/36]

template<>
char32 xtd::as< char32 > ( wchar  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
char32 result = as<char32>(value);

◆ as< char32 >() [9/36]

template<>
char32 xtd::as< char32 > ( decimal  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
char32 result = as<char32>(value);

◆ as< char32 >() [10/36]

template<>
char32 xtd::as< char32 > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
char32 result = as<char32>(value);

◆ as< char32 >() [11/36]

template<>
char32 xtd::as< char32 > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
char32 result = as<char32>(value);

◆ as< char32 >() [12/36]

template<>
char32 xtd::as< char32 > ( int16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
char32 result = as<char32>(value);

◆ as< char32 >() [13/36]

template<>
char32 xtd::as< char32 > ( int32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
char32 result = as<char32>(value);

◆ as< char32 >() [14/36]

template<>
char32 xtd::as< char32 > ( int64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
char32 result = as<char32>(value);

◆ as< char32 >() [15/36]

template<>
char32 xtd::as< char32 > ( slong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
char32 result = as<char32>(value);

◆ as< char32 >() [16/36]

template<>
char32 xtd::as< char32 > ( sbyte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
char32 result = as<char32>(value);

◆ as< char32 >() [17/36]

template<>
char32 xtd::as< char32 > ( uint16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
char32 result = as<char32>(value);

◆ as< char32 >() [18/36]

template<>
char32 xtd::as< char32 > ( uint32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
char32 result = as<char32>(value);

◆ as< char32 >() [19/36]

template<>
char32 xtd::as< char32 > ( uint64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
char32 result = as<char32>(value);

◆ as< char32 >() [20/36]

template<>
char32 xtd::as< char32 > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
char32 result = as<char32>(value);

◆ as< char32 >() [21/36]

template<>
char32 xtd::as< char32 > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
char32 result = as<char32>(value);

◆ as< char32 >() [22/36]

template<>
char32 xtd::as< char32 > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
char32 result = as<char32>(value);

◆ as< char32 >() [23/36]

template<>
char32 xtd::as< char32 > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
char32 result = as<char32>(value);

◆ as< char32 >() [24/36]

template<>
char32 xtd::as< char32 > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
char32 result = as<char32>(value);

◆ as< char32 >() [25/36]

template<>
char32 xtd::as< char32 > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
char32 result = as<char32>(value);

◆ as< char32 >() [26/36]

template<>
char32 xtd::as< char32 > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
char32 result = as<char32>(value);

◆ as< char32 >() [27/36]

template<>
char32 xtd::as< char32 > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
char32 result = as<char32>(value);

◆ as< char32 >() [28/36]

template<>
char32 xtd::as< char32 > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
char32 result = as<char32>(value);

◆ as< char32 >() [29/36]

template<>
char32 xtd::as< char32 > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
char32 result = as<char32>(value);

◆ as< char32 >() [30/36]

template<>
char32 xtd::as< char32 > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
char32 result = as<char32>(value);

◆ as< char32 >() [31/36]

template<>
char32 xtd::as< char32 > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
char32 result = as<char32>(value);

◆ as< char32 >() [32/36]

template<>
char32 xtd::as< char32 > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
char32 result = as<char32>(value);

◆ as< char32 >() [33/36]

template<>
char32 xtd::as< char32 > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
char32 result = as<char32>(value);

◆ as< char32 >() [34/36]

template<>
char32 xtd::as< char32 > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
char32 result = as<char32>(value);

◆ as< char32 >() [35/36]

template<>
char32 xtd::as< char32 > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
char32 result = as<char32>(value);

◆ as< char32 >() [36/36]

template<>
char32 xtd::as< char32 > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
char32 result = as<char32>(value);

◆ as< char8 >() [1/36]

template<>
char8 xtd::as< char8 > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
char8 result = as<char8>(value);

◆ as< char8 >() [2/36]

template<>
char8 xtd::as< char8 > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
char8 result = as<char8>(value);

◆ as< char8 >() [3/36]

template<>
char8 xtd::as< char8 > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
char8 result = as<char8>(value);

◆ as< char8 >() [4/36]

template<>
char8 xtd::as< char8 > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
char8 result = as<char8>(value);

◆ as< char8 >() [5/36]

template<>
char8 xtd::as< char8 > ( char8  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
char8 result = as<char8>(value);

◆ as< char8 >() [6/36]

template<>
char8 xtd::as< char8 > ( char16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
char8 result = as<char8>(value);

◆ as< char8 >() [7/36]

template<>
char8 xtd::as< char8 > ( char32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
char8 result = as<char8>(value);

◆ as< char8 >() [8/36]

template<>
char8 xtd::as< char8 > ( wchar  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
char8 result = as<char8>(value);

◆ as< char8 >() [9/36]

template<>
char8 xtd::as< char8 > ( decimal  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
char8 result = as<char8>(value);

◆ as< char8 >() [10/36]

template<>
char8 xtd::as< char8 > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
char8 result = as<char8>(value);

◆ as< char8 >() [11/36]

template<>
char8 xtd::as< char8 > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
char8 result = as<char8>(value);

◆ as< char8 >() [12/36]

template<>
char8 xtd::as< char8 > ( int16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
char8 result = as<char8>(value);

◆ as< char8 >() [13/36]

template<>
char8 xtd::as< char8 > ( int32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
char8 result = as<char8>(value);

◆ as< char8 >() [14/36]

template<>
char8 xtd::as< char8 > ( int64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
char8 result = as<char8>(value);

◆ as< char8 >() [15/36]

template<>
char8 xtd::as< char8 > ( slong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
char8 result = as<char8>(value);

◆ as< char8 >() [16/36]

template<>
char8 xtd::as< char8 > ( sbyte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
char8 result = as<char8>(value);

◆ as< char8 >() [17/36]

template<>
char8 xtd::as< char8 > ( uint16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
char8 result = as<char8>(value);

◆ as< char8 >() [18/36]

template<>
char8 xtd::as< char8 > ( uint32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
char8 result = as<char8>(value);

◆ as< char8 >() [19/36]

template<>
char8 xtd::as< char8 > ( uint64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
char8 result = as<char8>(value);

◆ as< char8 >() [20/36]

template<>
char8 xtd::as< char8 > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
char8 result = as<char8>(value);

◆ as< char8 >() [21/36]

template<>
char8 xtd::as< char8 > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
char8 result = as<char8>(value);

◆ as< char8 >() [22/36]

template<>
char8 xtd::as< char8 > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
char8 result = as<char8>(value);

◆ as< char8 >() [23/36]

template<>
char8 xtd::as< char8 > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
char8 result = as<char8>(value);

◆ as< char8 >() [24/36]

template<>
char8 xtd::as< char8 > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
char8 result = as<char8>(value);

◆ as< char8 >() [25/36]

template<>
char8 xtd::as< char8 > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
char8 result = as<char8>(value);

◆ as< char8 >() [26/36]

template<>
char8 xtd::as< char8 > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
char8 result = as<char8>(value);

◆ as< char8 >() [27/36]

template<>
char8 xtd::as< char8 > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
char8 result = as<char8>(value);

◆ as< char8 >() [28/36]

template<>
char8 xtd::as< char8 > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
char8 result = as<char8>(value);

◆ as< char8 >() [29/36]

template<>
char8 xtd::as< char8 > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
char8 result = as<char8>(value);

◆ as< char8 >() [30/36]

template<>
char8 xtd::as< char8 > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
char8 result = as<char8>(value);

◆ as< char8 >() [31/36]

template<>
char8 xtd::as< char8 > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
char8 result = as<char8>(value);

◆ as< char8 >() [32/36]

template<>
char8 xtd::as< char8 > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
char8 result = as<char8>(value);

◆ as< char8 >() [33/36]

template<>
char8 xtd::as< char8 > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
char8 result = as<char8>(value);

◆ as< char8 >() [34/36]

template<>
char8 xtd::as< char8 > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
char8 result = as<char8>(value);

◆ as< char8 >() [35/36]

template<>
char8 xtd::as< char8 > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
char8 result = as<char8>(value);

◆ as< char8 >() [36/36]

template<>
char8 xtd::as< char8 > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new char8 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
char8 result = as<char8>(value);

◆ as< decimal >() [1/36]

template<>
decimal xtd::as< decimal > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
decimal result = as<decimal>(value);

◆ as< decimal >() [2/36]

template<>
decimal xtd::as< decimal > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
decimal result = as<decimal>(value);

◆ as< decimal >() [3/36]

template<>
decimal xtd::as< decimal > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
decimal result = as<decimal>(value);

◆ as< decimal >() [4/36]

template<>
decimal xtd::as< decimal > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
decimal result = as<decimal>(value);

◆ as< decimal >() [5/36]

template<>
decimal xtd::as< decimal > ( char8  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
decimal result = as<decimal>(value);

◆ as< decimal >() [6/36]

template<>
decimal xtd::as< decimal > ( char16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
decimal result = as<decimal>(value);

◆ as< decimal >() [7/36]

template<>
decimal xtd::as< decimal > ( char32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
decimal result = as<decimal>(value);

◆ as< decimal >() [8/36]

template<>
decimal xtd::as< decimal > ( wchar  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
decimal result = as<decimal>(value);

◆ as< decimal >() [9/36]

template<>
decimal xtd::as< decimal > ( decimal  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
decimal result = as<decimal>(value);

◆ as< decimal >() [10/36]

template<>
decimal xtd::as< decimal > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
decimal result = as<decimal>(value);

◆ as< decimal >() [11/36]

template<>
decimal xtd::as< decimal > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
decimal result = as<decimal>(value);

◆ as< decimal >() [12/36]

template<>
decimal xtd::as< decimal > ( int16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
decimal result = as<decimal>(value);

◆ as< decimal >() [13/36]

template<>
decimal xtd::as< decimal > ( int32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
decimal result = as<decimal>(value);

◆ as< decimal >() [14/36]

template<>
decimal xtd::as< decimal > ( int64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
decimal result = as<decimal>(value);

◆ as< decimal >() [15/36]

template<>
decimal xtd::as< decimal > ( slong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
decimal result = as<decimal>(value);

◆ as< decimal >() [16/36]

template<>
decimal xtd::as< decimal > ( sbyte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
decimal result = as<decimal>(value);

◆ as< decimal >() [17/36]

template<>
decimal xtd::as< decimal > ( uint16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
decimal result = as<decimal>(value);

◆ as< decimal >() [18/36]

template<>
decimal xtd::as< decimal > ( uint32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
decimal result = as<decimal>(value);

◆ as< decimal >() [19/36]

template<>
decimal xtd::as< decimal > ( uint64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
decimal result = as<decimal>(value);

◆ as< decimal >() [20/36]

template<>
decimal xtd::as< decimal > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
decimal result = as<decimal>(value);

◆ as< decimal >() [21/36]

template<>
decimal xtd::as< decimal > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
decimal result = as<decimal>(value);

◆ as< decimal >() [22/36]

template<>
decimal xtd::as< decimal > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
decimal result = as<decimal>(value);

◆ as< decimal >() [23/36]

template<>
decimal xtd::as< decimal > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
decimal result = as<decimal>(value);

◆ as< decimal >() [24/36]

template<>
decimal xtd::as< decimal > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
decimal result = as<decimal>(value);

◆ as< decimal >() [25/36]

template<>
decimal xtd::as< decimal > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
decimal result = as<decimal>(value);

◆ as< decimal >() [26/36]

template<>
decimal xtd::as< decimal > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
decimal result = as<decimal>(value);

◆ as< decimal >() [27/36]

template<>
decimal xtd::as< decimal > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
decimal result = as<decimal>(value);

◆ as< decimal >() [28/36]

template<>
decimal xtd::as< decimal > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
decimal result = as<decimal>(value);

◆ as< decimal >() [29/36]

template<>
decimal xtd::as< decimal > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
decimal result = as<decimal>(value);

◆ as< decimal >() [30/36]

template<>
decimal xtd::as< decimal > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
decimal result = as<decimal>(value);

◆ as< decimal >() [31/36]

template<>
decimal xtd::as< decimal > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
decimal result = as<decimal>(value);

◆ as< decimal >() [32/36]

template<>
decimal xtd::as< decimal > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
decimal result = as<decimal>(value);

◆ as< decimal >() [33/36]

template<>
decimal xtd::as< decimal > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
decimal result = as<decimal>(value);

◆ as< decimal >() [34/36]

template<>
decimal xtd::as< decimal > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
decimal result = as<decimal>(value);

◆ as< decimal >() [35/36]

template<>
decimal xtd::as< decimal > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
decimal result = as<decimal>(value);

◆ as< decimal >() [36/36]

template<>
decimal xtd::as< decimal > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new decimal object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
decimal result = as<decimal>(value);

◆ as< double >() [1/36]

template<>
double xtd::as< double > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
double result = as<double>(value);

◆ as< double >() [2/36]

template<>
double xtd::as< double > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
double result = as<double>(value);

◆ as< double >() [3/36]

template<>
double xtd::as< double > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
double result = as<double>(value);

◆ as< double >() [4/36]

template<>
double xtd::as< double > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
double result = as<double>(value);

◆ as< double >() [5/36]

template<>
double xtd::as< double > ( char8  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
double result = as<double>(value);

◆ as< double >() [6/36]

template<>
double xtd::as< double > ( char16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
double result = as<double>(value);

◆ as< double >() [7/36]

template<>
double xtd::as< double > ( char32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
double result = as<double>(value);

◆ as< double >() [8/36]

template<>
double xtd::as< double > ( wchar  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
double result = as<double>(value);

◆ as< double >() [9/36]

template<>
double xtd::as< double > ( decimal  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
double result = as<double>(value);

◆ as< double >() [10/36]

template<>
double xtd::as< double > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
double result = as<double>(value);

◆ as< double >() [11/36]

template<>
double xtd::as< double > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
double result = as<double>(value);

◆ as< double >() [12/36]

template<>
double xtd::as< double > ( int16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
double result = as<double>(value);

◆ as< double >() [13/36]

template<>
double xtd::as< double > ( int32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
double result = as<double>(value);

◆ as< double >() [14/36]

template<>
double xtd::as< double > ( int64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
double result = as<double>(value);

◆ as< double >() [15/36]

template<>
double xtd::as< double > ( slong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
double result = as<double>(value);

◆ as< double >() [16/36]

template<>
double xtd::as< double > ( sbyte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
double result = as<double>(value);

◆ as< double >() [17/36]

template<>
double xtd::as< double > ( uint16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
double result = as<double>(value);

◆ as< double >() [18/36]

template<>
double xtd::as< double > ( uint32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
double result = as<double>(value);

◆ as< double >() [19/36]

template<>
double xtd::as< double > ( uint64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
double result = as<double>(value);

◆ as< double >() [20/36]

template<>
double xtd::as< double > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
double result = as<double>(value);

◆ as< double >() [21/36]

template<>
double xtd::as< double > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
double result = as<double>(value);

◆ as< double >() [22/36]

template<>
double xtd::as< double > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
double result = as<double>(value);

◆ as< double >() [23/36]

template<>
double xtd::as< double > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
double result = as<double>(value);

◆ as< double >() [24/36]

template<>
double xtd::as< double > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
double result = as<double>(value);

◆ as< double >() [25/36]

template<>
double xtd::as< double > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
double result = as<double>(value);

◆ as< double >() [26/36]

template<>
double xtd::as< double > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
double result = as<double>(value);

◆ as< double >() [27/36]

template<>
double xtd::as< double > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
double result = as<double>(value);

◆ as< double >() [28/36]

template<>
double xtd::as< double > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
double result = as<double>(value);

◆ as< double >() [29/36]

template<>
double xtd::as< double > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
double result = as<double>(value);

◆ as< double >() [30/36]

template<>
double xtd::as< double > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
double result = as<double>(value);

◆ as< double >() [31/36]

template<>
double xtd::as< double > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
double result = as<double>(value);

◆ as< double >() [32/36]

template<>
double xtd::as< double > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
double result = as<double>(value);

◆ as< double >() [33/36]

template<>
double xtd::as< double > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
double result = as<double>(value);

◆ as< double >() [34/36]

template<>
double xtd::as< double > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
double result = as<double>(value);

◆ as< double >() [35/36]

template<>
double xtd::as< double > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
double result = as<double>(value);

◆ as< double >() [36/36]

template<>
double xtd::as< double > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
double result = as<double>(value);

◆ as< float >() [1/36]

template<>
float xtd::as< float > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
float result = as<float>(value);
Examples:
animation.cpp, draw_point.cpp, and iprogress.cpp.

◆ as< float >() [2/36]

template<>
float xtd::as< float > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
float result = as<float>(value);

◆ as< float >() [3/36]

template<>
float xtd::as< float > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
float result = as<float>(value);

◆ as< float >() [4/36]

template<>
float xtd::as< float > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
float result = as<float>(value);

◆ as< float >() [5/36]

template<>
float xtd::as< float > ( char8  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
float result = as<float>(value);

◆ as< float >() [6/36]

template<>
float xtd::as< float > ( char16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
float result = as<float>(value);

◆ as< float >() [7/36]

template<>
float xtd::as< float > ( char32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
float result = as<float>(value);

◆ as< float >() [8/36]

template<>
float xtd::as< float > ( wchar  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
float result = as<float>(value);

◆ as< float >() [9/36]

template<>
float xtd::as< float > ( decimal  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
float result = as<float>(value);

◆ as< float >() [10/36]

template<>
float xtd::as< float > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
float result = as<float>(value);

◆ as< float >() [11/36]

template<>
float xtd::as< float > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
float result = as<float>(value);

◆ as< float >() [12/36]

template<>
float xtd::as< float > ( int16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
float result = as<float>(value);

◆ as< float >() [13/36]

template<>
float xtd::as< float > ( int32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
float result = as<float>(value);

◆ as< float >() [14/36]

template<>
float xtd::as< float > ( int64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
float result = as<float>(value);

◆ as< float >() [15/36]

template<>
float xtd::as< float > ( slong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
float result = as<float>(value);

◆ as< float >() [16/36]

template<>
float xtd::as< float > ( sbyte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
float result = as<float>(value);

◆ as< float >() [17/36]

template<>
float xtd::as< float > ( uint16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
float result = as<float>(value);

◆ as< float >() [18/36]

template<>
float xtd::as< float > ( uint32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
float result = as<float>(value);

◆ as< float >() [19/36]

template<>
float xtd::as< float > ( uint64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
float result = as<float>(value);

◆ as< float >() [20/36]

template<>
float xtd::as< float > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
float result = as<float>(value);

◆ as< float >() [21/36]

template<>
float xtd::as< float > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
float result = as<float>(value);

◆ as< float >() [22/36]

template<>
float xtd::as< float > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
float result = as<float>(value);

◆ as< float >() [23/36]

template<>
float xtd::as< float > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
float result = as<float>(value);

◆ as< float >() [24/36]

template<>
float xtd::as< float > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
float result = as<float>(value);

◆ as< float >() [25/36]

template<>
float xtd::as< float > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
float result = as<float>(value);

◆ as< float >() [26/36]

template<>
float xtd::as< float > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
float result = as<float>(value);

◆ as< float >() [27/36]

template<>
float xtd::as< float > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
float result = as<float>(value);

◆ as< float >() [28/36]

template<>
float xtd::as< float > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
float result = as<float>(value);

◆ as< float >() [29/36]

template<>
float xtd::as< float > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
float result = as<float>(value);

◆ as< float >() [30/36]

template<>
float xtd::as< float > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
float result = as<float>(value);

◆ as< float >() [31/36]

template<>
float xtd::as< float > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
float result = as<float>(value);

◆ as< float >() [32/36]

template<>
float xtd::as< float > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
float result = as<float>(value);

◆ as< float >() [33/36]

template<>
float xtd::as< float > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
float result = as<float>(value);

◆ as< float >() [34/36]

template<>
float xtd::as< float > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
float result = as<float>(value);

◆ as< float >() [35/36]

template<>
float xtd::as< float > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
float result = as<float>(value);

◆ as< float >() [36/36]

template<>
float xtd::as< float > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
float result = as<float>(value);

◆ as< int16 >() [1/37]

template<>
int16 xtd::as< int16 > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
int16 result = as<int16>(value);

◆ as< int16 >() [2/37]

template<>
int16 xtd::as< int16 > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
int16 result = as<int16>(value);

◆ as< int16 >() [3/37]

template<>
int16 xtd::as< int16 > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
int16 result = as<int16>(value);

◆ as< int16 >() [4/37]

template<>
int16 xtd::as< int16 > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
int16 result = as<int16>(value);

◆ as< int16 >() [5/37]

template<>
int16 xtd::as< int16 > ( char8  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
int16 result = as<int16>(value);

◆ as< int16 >() [6/37]

template<>
int16 xtd::as< int16 > ( char16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
int16 result = as<int16>(value);

◆ as< int16 >() [7/37]

template<>
int16 xtd::as< int16 > ( char32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
int16 result = as<int16>(value);

◆ as< int16 >() [8/37]

template<>
int16 xtd::as< int16 > ( wchar  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
int16 result = as<int16>(value);

◆ as< int16 >() [9/37]

template<>
int16 xtd::as< int16 > ( decimal  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
int16 result = as<int16>(value);

◆ as< int16 >() [10/37]

template<>
int16 xtd::as< int16 > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
int16 result = as<int16>(value);

◆ as< int16 >() [11/37]

template<>
int16 xtd::as< int16 > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
int16 result = as<int16>(value);

◆ as< int16 >() [12/37]

template<>
int16 xtd::as< int16 > ( int16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
int16 result = as<int16>(value);

◆ as< int16 >() [13/37]

template<>
int16 xtd::as< int16 > ( int32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
int16 result = as<int16>(value);

◆ as< int16 >() [14/37]

template<>
int16 xtd::as< int16 > ( int64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
int16 result = as<int16>(value);

◆ as< int16 >() [15/37]

template<>
int16 xtd::as< int16 > ( slong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
int16 result = as<int16>(value);

◆ as< int16 >() [16/37]

template<>
int16 xtd::as< int16 > ( sbyte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
int16 result = as<int16>(value);

◆ as< int16 >() [17/37]

template<>
int16 xtd::as< int16 > ( uint16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
int16 result = as<int16>(value);

◆ as< int16 >() [18/37]

template<>
int16 xtd::as< int16 > ( uint32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
int16 result = as<int16>(value);

◆ as< int16 >() [19/37]

template<>
int16 xtd::as< int16 > ( uint64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
int16 result = as<int16>(value);

◆ as< int16 >() [20/37]

template<>
int16 xtd::as< int16 > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
int16 result = as<int16>(value);

◆ as< int16 >() [21/37]

template<>
int16 xtd::as< int16 > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
int16 result = as<int16>(value);

◆ as< int16 >() [22/37]

template<>
int16 xtd::as< int16 > ( const xtd::ustring value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new int16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a int16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "0x2A";
int16 result = as<int16>(value, 16);

◆ as< int16 >() [23/37]

template<>
int16 xtd::as< int16 > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
int16 result = as<int16>(value);

◆ as< int16 >() [24/37]

template<>
int16 xtd::as< int16 > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
int16 result = as<int16>(value);

◆ as< int16 >() [25/37]

template<>
int16 xtd::as< int16 > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
int16 result = as<int16>(value);

◆ as< int16 >() [26/37]

template<>
int16 xtd::as< int16 > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
int16 result = as<int16>(value);

◆ as< int16 >() [27/37]

template<>
int16 xtd::as< int16 > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
int16 result = as<int16>(value);

◆ as< int16 >() [28/37]

template<>
int16 xtd::as< int16 > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
int16 result = as<int16>(value);

◆ as< int16 >() [29/37]

template<>
int16 xtd::as< int16 > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
int16 result = as<int16>(value);

◆ as< int16 >() [30/37]

template<>
int16 xtd::as< int16 > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
int16 result = as<int16>(value);

◆ as< int16 >() [31/37]

template<>
int16 xtd::as< int16 > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
int16 result = as<int16>(value);

◆ as< int16 >() [32/37]

template<>
int16 xtd::as< int16 > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
int16 result = as<int16>(value);

◆ as< int16 >() [33/37]

template<>
int16 xtd::as< int16 > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
int16 result = as<int16>(value);

◆ as< int16 >() [34/37]

template<>
int16 xtd::as< int16 > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
int16 result = as<int16>(value);

◆ as< int16 >() [35/37]

template<>
int16 xtd::as< int16 > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
int16 result = as<int16>(value);

◆ as< int16 >() [36/37]

template<>
int16 xtd::as< int16 > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
int16 result = as<int16>(value);

◆ as< int16 >() [37/37]

template<>
int16 xtd::as< int16 > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
int16 result = as<int16>(value);

◆ as< int32 >() [1/37]

template<>
int32 xtd::as< int32 > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
int32 result = as<int32>(value);

◆ as< int32 >() [2/37]

template<>
int32 xtd::as< int32 > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
int32 result = as<int32>(value);

◆ as< int32 >() [3/37]

template<>
int32 xtd::as< int32 > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
int32 result = as<int32>(value);

◆ as< int32 >() [4/37]

template<>
int32 xtd::as< int32 > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
int32 result = as<int32>(value);

◆ as< int32 >() [5/37]

template<>
int32 xtd::as< int32 > ( char8  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
int32 result = as<int32>(value);

◆ as< int32 >() [6/37]

template<>
int32 xtd::as< int32 > ( char16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
int32 result = as<int32>(value);

◆ as< int32 >() [7/37]

template<>
int32 xtd::as< int32 > ( char32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
int32 result = as<int32>(value);

◆ as< int32 >() [8/37]

template<>
int32 xtd::as< int32 > ( wchar  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
int32 result = as<int32>(value);

◆ as< int32 >() [9/37]

template<>
int32 xtd::as< int32 > ( decimal  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
int32 result = as<int32>(value);

◆ as< int32 >() [10/37]

template<>
int32 xtd::as< int32 > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
int32 result = as<int32>(value);

◆ as< int32 >() [11/37]

template<>
int32 xtd::as< int32 > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
int32 result = as<int32>(value);

◆ as< int32 >() [12/37]

template<>
int32 xtd::as< int32 > ( int16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
int32 result = as<int32>(value);

◆ as< int32 >() [13/37]

template<>
int32 xtd::as< int32 > ( int32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
int32 result = as<int32>(value);

◆ as< int32 >() [14/37]

template<>
int32 xtd::as< int32 > ( int64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
int32 result = as<int32>(value);

◆ as< int32 >() [15/37]

template<>
int32 xtd::as< int32 > ( slong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
int32 result = as<int32>(value);

◆ as< int32 >() [16/37]

template<>
int32 xtd::as< int32 > ( sbyte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
int32 result = as<int32>(value);

◆ as< int32 >() [17/37]

template<>
int32 xtd::as< int32 > ( uint16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
int32 result = as<int32>(value);

◆ as< int32 >() [18/37]

template<>
int32 xtd::as< int32 > ( uint32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
int32 result = as<int32>(value);

◆ as< int32 >() [19/37]

template<>
int32 xtd::as< int32 > ( uint64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
int32 result = as<int32>(value);

◆ as< int32 >() [20/37]

template<>
int32 xtd::as< int32 > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
int32 result = as<int32>(value);

◆ as< int32 >() [21/37]

template<>
int32 xtd::as< int32 > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
int32 result = as<int32>(value);

◆ as< int32 >() [22/37]

template<>
int32 xtd::as< int32 > ( const xtd::ustring value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new int32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a int32.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "0x2A";
int32 result = as<int32>(value, 16);

◆ as< int32 >() [23/37]

template<>
int32 xtd::as< int32 > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
int32 result = as<int32>(value);

◆ as< int32 >() [24/37]

template<>
int32 xtd::as< int32 > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
int32 result = as<int32>(value);

◆ as< int32 >() [25/37]

template<>
int32 xtd::as< int32 > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
int32 result = as<int32>(value);

◆ as< int32 >() [26/37]

template<>
int32 xtd::as< int32 > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
int32 result = as<int32>(value);

◆ as< int32 >() [27/37]

template<>
int32 xtd::as< int32 > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
int32 result = as<int32>(value);

◆ as< int32 >() [28/37]

template<>
int32 xtd::as< int32 > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
int32 result = as<int32>(value);

◆ as< int32 >() [29/37]

template<>
int32 xtd::as< int32 > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
int32 result = as<int32>(value);

◆ as< int32 >() [30/37]

template<>
int32 xtd::as< int32 > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
int32 result = as<int32>(value);

◆ as< int32 >() [31/37]

template<>
int32 xtd::as< int32 > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
int32 result = as<int32>(value);

◆ as< int32 >() [32/37]

template<>
int32 xtd::as< int32 > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
int32 result = as<int32>(value);

◆ as< int32 >() [33/37]

template<>
int32 xtd::as< int32 > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
int32 result = as<int32>(value);

◆ as< int32 >() [34/37]

template<>
int32 xtd::as< int32 > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
int32 result = as<int32>(value);

◆ as< int32 >() [35/37]

template<>
int32 xtd::as< int32 > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
int32 result = as<int32>(value);

◆ as< int32 >() [36/37]

template<>
int32 xtd::as< int32 > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
int32 result = as<int32>(value);

◆ as< int32 >() [37/37]

template<>
int32 xtd::as< int32 > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
int32 result = as<int32>(value);

◆ as< int64 >() [1/37]

template<>
int64 xtd::as< int64 > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
int64 result = as<int64>(value);

◆ as< int64 >() [2/37]

template<>
int64 xtd::as< int64 > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
int64 result = as<int64>(value);

◆ as< int64 >() [3/37]

template<>
int64 xtd::as< int64 > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
int64 result = as<int64>(value);

◆ as< int64 >() [4/37]

template<>
int64 xtd::as< int64 > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
int64 result = as<int64>(value);

◆ as< int64 >() [5/37]

template<>
int64 xtd::as< int64 > ( char8  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
int64 result = as<int64>(value);

◆ as< int64 >() [6/37]

template<>
int64 xtd::as< int64 > ( char16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
int64 result = as<int64>(value);

◆ as< int64 >() [7/37]

template<>
int64 xtd::as< int64 > ( char32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
int64 result = as<int64>(value);

◆ as< int64 >() [8/37]

template<>
int64 xtd::as< int64 > ( wchar  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
int64 result = as<int64>(value);

◆ as< int64 >() [9/37]

template<>
int64 xtd::as< int64 > ( decimal  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
int64 result = as<int64>(value);

◆ as< int64 >() [10/37]

template<>
int64 xtd::as< int64 > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
int64 result = as<int64>(value);

◆ as< int64 >() [11/37]

template<>
int64 xtd::as< int64 > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
int64 result = as<int64>(value);

◆ as< int64 >() [12/37]

template<>
int64 xtd::as< int64 > ( int16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
int64 result = as<int64>(value);

◆ as< int64 >() [13/37]

template<>
int64 xtd::as< int64 > ( int32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
int64 result = as<int64>(value);

◆ as< int64 >() [14/37]

template<>
int64 xtd::as< int64 > ( int64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
int64 result = as<int64>(value);

◆ as< int64 >() [15/37]

template<>
int64 xtd::as< int64 > ( slong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
int64 result = as<int64>(value);

◆ as< int64 >() [16/37]

template<>
int64 xtd::as< int64 > ( sbyte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
int64 result = as<int64>(value);

◆ as< int64 >() [17/37]

template<>
int64 xtd::as< int64 > ( uint16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
int64 result = as<int64>(value);

◆ as< int64 >() [18/37]

template<>
int64 xtd::as< int64 > ( uint32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
int64 result = as<int64>(value);

◆ as< int64 >() [19/37]

template<>
int64 xtd::as< int64 > ( uint64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
int64 result = as<int64>(value);

◆ as< int64 >() [20/37]

template<>
int64 xtd::as< int64 > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
int64 result = as<int64>(value);

◆ as< int64 >() [21/37]

template<>
int64 xtd::as< int64 > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
int64 result = as<int64>(value);

◆ as< int64 >() [22/37]

template<>
int64 xtd::as< int64 > ( const xtd::ustring value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new int64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a int64.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "0x2A";
int64 result = as<int64>(value, 16);

◆ as< int64 >() [23/37]

template<>
int64 xtd::as< int64 > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
int64 result = as<int64>(value);

◆ as< int64 >() [24/37]

template<>
int64 xtd::as< int64 > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
int64 result = as<int64>(value);

◆ as< int64 >() [25/37]

template<>
int64 xtd::as< int64 > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
int64 result = as<int64>(value);

◆ as< int64 >() [26/37]

template<>
int64 xtd::as< int64 > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
int64 result = as<int64>(value);

◆ as< int64 >() [27/37]

template<>
int64 xtd::as< int64 > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
int64 result = as<int64>(value);

◆ as< int64 >() [28/37]

template<>
int64 xtd::as< int64 > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
int64 result = as<int64>(value);

◆ as< int64 >() [29/37]

template<>
int64 xtd::as< int64 > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
int64 result = as<int64>(value);

◆ as< int64 >() [30/37]

template<>
int64 xtd::as< int64 > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
int64 result = as<int64>(value);

◆ as< int64 >() [31/37]

template<>
int64 xtd::as< int64 > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
int64 result = as<int64>(value);

◆ as< int64 >() [32/37]

template<>
int64 xtd::as< int64 > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
int64 result = as<int64>(value);

◆ as< int64 >() [33/37]

template<>
int64 xtd::as< int64 > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
int64 result = as<int64>(value);

◆ as< int64 >() [34/37]

template<>
int64 xtd::as< int64 > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
int64 result = as<int64>(value);

◆ as< int64 >() [35/37]

template<>
int64 xtd::as< int64 > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
int64 result = as<int64>(value);

◆ as< int64 >() [36/37]

template<>
int64 xtd::as< int64 > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
int64 result = as<int64>(value);

◆ as< int64 >() [37/37]

template<>
int64 xtd::as< int64 > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new int64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
int64 result = as<int64>(value);

◆ as< sbyte >() [1/37]

template<>
sbyte xtd::as< sbyte > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [2/37]

template<>
sbyte xtd::as< sbyte > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [3/37]

template<>
sbyte xtd::as< sbyte > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [4/37]

template<>
sbyte xtd::as< sbyte > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [5/37]

template<>
sbyte xtd::as< sbyte > ( char8  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [6/37]

template<>
sbyte xtd::as< sbyte > ( char16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [7/37]

template<>
sbyte xtd::as< sbyte > ( char32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [8/37]

template<>
sbyte xtd::as< sbyte > ( wchar  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [9/37]

template<>
sbyte xtd::as< sbyte > ( decimal  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [10/37]

template<>
sbyte xtd::as< sbyte > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [11/37]

template<>
sbyte xtd::as< sbyte > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [12/37]

template<>
sbyte xtd::as< sbyte > ( int16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [13/37]

template<>
sbyte xtd::as< sbyte > ( int32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [14/37]

template<>
sbyte xtd::as< sbyte > ( int64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [15/37]

template<>
sbyte xtd::as< sbyte > ( slong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [16/37]

template<>
sbyte xtd::as< sbyte > ( sbyte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [17/37]

template<>
sbyte xtd::as< sbyte > ( uint16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [18/37]

template<>
sbyte xtd::as< sbyte > ( uint32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [19/37]

template<>
sbyte xtd::as< sbyte > ( uint64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [20/37]

template<>
sbyte xtd::as< sbyte > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [21/37]

template<>
sbyte xtd::as< sbyte > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [22/37]

template<>
sbyte xtd::as< sbyte > ( const xtd::ustring value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new sbyte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a sbyte.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "0x2A";
sbyte result = as<sbyte>(value, 16);

◆ as< sbyte >() [23/37]

template<>
sbyte xtd::as< sbyte > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [24/37]

template<>
sbyte xtd::as< sbyte > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [25/37]

template<>
sbyte xtd::as< sbyte > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [26/37]

template<>
sbyte xtd::as< sbyte > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [27/37]

template<>
sbyte xtd::as< sbyte > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [28/37]

template<>
sbyte xtd::as< sbyte > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [29/37]

template<>
sbyte xtd::as< sbyte > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [30/37]

template<>
sbyte xtd::as< sbyte > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [31/37]

template<>
sbyte xtd::as< sbyte > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [32/37]

template<>
sbyte xtd::as< sbyte > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [33/37]

template<>
sbyte xtd::as< sbyte > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [34/37]

template<>
sbyte xtd::as< sbyte > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [35/37]

template<>
sbyte xtd::as< sbyte > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [36/37]

template<>
sbyte xtd::as< sbyte > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
sbyte result = as<sbyte>(value);

◆ as< sbyte >() [37/37]

template<>
sbyte xtd::as< sbyte > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new sbyte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
sbyte result = as<sbyte>(value);

◆ as< slong >() [1/37]

template<>
slong xtd::as< slong > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
slong result = as<slong>(value);

◆ as< slong >() [2/37]

template<>
slong xtd::as< slong > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
slong result = as<slong>(value);

◆ as< slong >() [3/37]

template<>
slong xtd::as< slong > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
slong result = as<slong>(value);

◆ as< slong >() [4/37]

template<>
slong xtd::as< slong > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
slong result = as<slong>(value);

◆ as< slong >() [5/37]

template<>
slong xtd::as< slong > ( char8  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
slong result = as<slong>(value);

◆ as< slong >() [6/37]

template<>
slong xtd::as< slong > ( char16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
slong result = as<slong>(value);

◆ as< slong >() [7/37]

template<>
slong xtd::as< slong > ( char32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
slong result = as<slong>(value);

◆ as< slong >() [8/37]

template<>
slong xtd::as< slong > ( wchar  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
slong result = as<slong>(value);

◆ as< slong >() [9/37]

template<>
slong xtd::as< slong > ( decimal  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
slong result = as<slong>(value);

◆ as< slong >() [10/37]

template<>
slong xtd::as< slong > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
slong result = as<slong>(value);

◆ as< slong >() [11/37]

template<>
slong xtd::as< slong > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
slong result = as<slong>(value);

◆ as< slong >() [12/37]

template<>
slong xtd::as< slong > ( int16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
slong result = as<slong>(value);

◆ as< slong >() [13/37]

template<>
slong xtd::as< slong > ( int32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
slong result = as<slong>(value);

◆ as< slong >() [14/37]

template<>
slong xtd::as< slong > ( int64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
slong result = as<slong>(value);

◆ as< slong >() [15/37]

template<>
slong xtd::as< slong > ( slong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
slong result = as<slong>(value);

◆ as< slong >() [16/37]

template<>
slong xtd::as< slong > ( sbyte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
slong result = as<slong>(value);

◆ as< slong >() [17/37]

template<>
slong xtd::as< slong > ( uint16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
slong result = as<slong>(value);

◆ as< slong >() [18/37]

template<>
slong xtd::as< slong > ( uint32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
slong result = as<slong>(value);

◆ as< slong >() [19/37]

template<>
slong xtd::as< slong > ( uint64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
slong result = as<slong>(value);

◆ as< slong >() [20/37]

template<>
slong xtd::as< slong > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
slong result = as<slong>(value);

◆ as< slong >() [21/37]

template<>
slong xtd::as< slong > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
slong result = as<slong>(value);

◆ as< slong >() [22/37]

template<>
slong xtd::as< slong > ( const xtd::ustring value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a slong.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "0x2A";
slong result = as<slong>(value, 16);

◆ as< slong >() [23/37]

template<>
slong xtd::as< slong > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
slong result = as<slong>(value);

◆ as< slong >() [24/37]

template<>
slong xtd::as< slong > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
slong result = as<slong>(value);

◆ as< slong >() [25/37]

template<>
slong xtd::as< slong > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
slong result = as<slong>(value);

◆ as< slong >() [26/37]

template<>
slong xtd::as< slong > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
slong result = as<slong>(value);

◆ as< slong >() [27/37]

template<>
slong xtd::as< slong > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
slong result = as<slong>(value);

◆ as< slong >() [28/37]

template<>
slong xtd::as< slong > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
slong result = as<slong>(value);

◆ as< slong >() [29/37]

template<>
slong xtd::as< slong > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
slong result = as<slong>(value);

◆ as< slong >() [30/37]

template<>
slong xtd::as< slong > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
slong result = as<slong>(value);

◆ as< slong >() [31/37]

template<>
slong xtd::as< slong > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
slong result = as<slong>(value);

◆ as< slong >() [32/37]

template<>
slong xtd::as< slong > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
slong result = as<slong>(value);

◆ as< slong >() [33/37]

template<>
slong xtd::as< slong > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
slong result = as<slong>(value);

◆ as< slong >() [34/37]

template<>
slong xtd::as< slong > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
slong result = as<slong>(value);

◆ as< slong >() [35/37]

template<>
slong xtd::as< slong > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
slong result = as<slong>(value);

◆ as< slong >() [36/37]

template<>
slong xtd::as< slong > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
slong result = as<slong>(value);

◆ as< slong >() [37/37]

template<>
slong xtd::as< slong > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new slong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
slong result = as<slong>(value);

◆ as< std::string >() [1/21]

template<>
std::string xtd::as< std::string > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [2/21]

template<>
std::string xtd::as< std::string > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [3/21]

template<>
std::string xtd::as< std::string > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [4/21]

template<>
std::string xtd::as< std::string > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [5/21]

template<>
std::string xtd::as< std::string > ( xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [6/21]

template<>
std::string xtd::as< std::string > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [7/21]

template<>
std::string xtd::as< std::string > ( std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [8/21]

template<>
std::string xtd::as< std::string > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [9/21]

template<>
std::string xtd::as< std::string > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [10/21]

template<>
std::string xtd::as< std::string > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [11/21]

template<>
std::string xtd::as< std::string > ( std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [12/21]

template<>
std::string xtd::as< std::string > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [13/21]

template<>
std::string xtd::as< std::string > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [14/21]

template<>
std::string xtd::as< std::string > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [15/21]

template<>
std::string xtd::as< std::string > ( std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [16/21]

template<>
std::string xtd::as< std::string > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [17/21]

template<>
std::string xtd::as< std::string > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [18/21]

template<>
std::string xtd::as< std::string > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [19/21]

template<>
std::string xtd::as< std::string > ( std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [20/21]

template<>
std::string xtd::as< std::string > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"Gammasoft";
string result = as<string>(value);

◆ as< std::string >() [21/21]

template<>
std::string xtd::as< std::string > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"Gammasoft";
string result = as<string>(value);

◆ as< std::u16string >() [1/22]

template<>
std::u16string xtd::as< std::u16string > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [2/22]

template<>
std::u16string xtd::as< std::u16string > ( std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [3/22]

template<>
std::u16string xtd::as< std::u16string > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [4/22]

template<>
std::u16string xtd::as< std::u16string > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [5/22]

template<>
std::u16string xtd::as< std::u16string > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [6/22]

template<>
std::u16string xtd::as< std::u16string > ( xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [7/22]

template<>
std::u16string xtd::as< std::u16string > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [8/22]

template<>
std::u16string xtd::as< std::u16string > ( std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [9/22]

template<>
std::u16string xtd::as< std::u16string > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [10/22]

template<>
std::u16string xtd::as< std::u16string > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [11/22]

template<>
std::u16string xtd::as< std::u16string > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [12/22]

template<>
std::u16string xtd::as< std::u16string > ( std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [13/22]

template<>
std::u16string xtd::as< std::u16string > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [14/22]

template<>
std::u16string xtd::as< std::u16string > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [15/22]

template<>
std::u16string xtd::as< std::u16string > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [16/22]

template<>
std::u16string xtd::as< std::u16string > ( std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [17/22]

template<>
std::u16string xtd::as< std::u16string > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [18/22]

template<>
std::u16string xtd::as< std::u16string > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [19/22]

template<>
std::u16string xtd::as< std::u16string > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [20/22]

template<>
std::u16string xtd::as< std::u16string > ( std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [21/22]

template<>
std::u16string xtd::as< std::u16string > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u16string >() [22/22]

template<>
std::u16string xtd::as< std::u16string > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"Gammasoft";
u16string result = as<u16string>(value);

◆ as< std::u32string >() [1/22]

template<>
std::u32string xtd::as< std::u32string > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [2/22]

template<>
std::u32string xtd::as< std::u32string > ( std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [3/22]

template<>
std::u32string xtd::as< std::u32string > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [4/22]

template<>
std::u32string xtd::as< std::u32string > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [5/22]

template<>
std::u32string xtd::as< std::u32string > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [6/22]

template<>
std::u32string xtd::as< std::u32string > ( xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [7/22]

template<>
std::u32string xtd::as< std::u32string > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [8/22]

template<>
std::u32string xtd::as< std::u32string > ( std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [9/22]

template<>
std::u32string xtd::as< std::u32string > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [10/22]

template<>
std::u32string xtd::as< std::u32string > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [11/22]

template<>
std::u32string xtd::as< std::u32string > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [12/22]

template<>
std::u32string xtd::as< std::u32string > ( std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [13/22]

template<>
std::u32string xtd::as< std::u32string > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [14/22]

template<>
std::u32string xtd::as< std::u32string > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [15/22]

template<>
std::u32string xtd::as< std::u32string > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [16/22]

template<>
std::u32string xtd::as< std::u32string > ( std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [17/22]

template<>
std::u32string xtd::as< std::u32string > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [18/22]

template<>
std::u32string xtd::as< std::u32string > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [19/22]

template<>
std::u32string xtd::as< std::u32string > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [20/22]

template<>
std::u32string xtd::as< std::u32string > ( std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [21/22]

template<>
std::u32string xtd::as< std::u32string > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u32string >() [22/22]

template<>
std::u32string xtd::as< std::u32string > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"Gammasoft";
u32string result = as<u32string>(value);

◆ as< std::u8string >() [1/22]

template<>
std::u8string xtd::as< std::u8string > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [2/22]

template<>
std::u8string xtd::as< std::u8string > ( std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [3/22]

template<>
std::u8string xtd::as< std::u8string > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* cvalue1 = "Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [4/22]

template<>
std::u8string xtd::as< std::u8string > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [5/22]

template<>
std::u8string xtd::as< std::u8string > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [6/22]

template<>
std::u8string xtd::as< std::u8string > ( xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [7/22]

template<>
std::u8string xtd::as< std::u8string > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [8/22]

template<>
std::u8string xtd::as< std::u8string > ( std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [9/22]

template<>
std::u8string xtd::as< std::u8string > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [10/22]

template<>
std::u8string xtd::as< std::u8string > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [11/22]

template<>
std::u8string xtd::as< std::u8string > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = "Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [12/22]

template<>
std::u8string xtd::as< std::u8string > ( std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = "Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [13/22]

template<>
std::u8string xtd::as< std::u8string > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [14/22]

template<>
std::u8string xtd::as< std::u8string > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [15/22]

template<>
std::u8string xtd::as< std::u8string > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [16/22]

template<>
std::u8string xtd::as< std::u8string > ( std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [17/22]

template<>
std::u8string xtd::as< std::u8string > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [18/22]

template<>
std::u8string xtd::as< std::u8string > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [19/22]

template<>
std::u8string xtd::as< std::u8string > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [20/22]

template<>
std::u8string xtd::as< std::u8string > ( std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [21/22]

template<>
std::u8string xtd::as< std::u8string > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::u8string >() [22/22]

template<>
std::u8string xtd::as< std::u8string > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"Gammasoft";
u8string result = as<u8string>(value);

◆ as< std::wstring >() [1/22]

template<>
std::wstring xtd::as< std::wstring > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [2/22]

template<>
std::wstring xtd::as< std::wstring > ( std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [3/22]

template<>
std::wstring xtd::as< std::wstring > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [4/22]

template<>
std::wstring xtd::as< std::wstring > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [5/22]

template<>
std::wstring xtd::as< std::wstring > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [6/22]

template<>
std::wstring xtd::as< std::wstring > ( xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [7/22]

template<>
std::wstring xtd::as< std::wstring > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [8/22]

template<>
std::wstring xtd::as< std::wstring > ( std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [9/22]

template<>
std::wstring xtd::as< std::wstring > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [10/22]

template<>
std::wstring xtd::as< std::wstring > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [11/22]

template<>
std::wstring xtd::as< std::wstring > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [12/22]

template<>
std::wstring xtd::as< std::wstring > ( std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [13/22]

template<>
std::wstring xtd::as< std::wstring > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [14/22]

template<>
std::wstring xtd::as< std::wstring > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [15/22]

template<>
std::wstring xtd::as< std::wstring > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [16/22]

template<>
std::wstring xtd::as< std::wstring > ( std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [17/22]

template<>
std::wstring xtd::as< std::wstring > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [18/22]

template<>
std::wstring xtd::as< std::wstring > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [19/22]

template<>
std::wstring xtd::as< std::wstring > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [20/22]

template<>
std::wstring xtd::as< std::wstring > ( std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [21/22]

template<>
std::wstring xtd::as< std::wstring > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"Gammasoft";
wstring result = as<wstring>(value);

◆ as< std::wstring >() [22/22]

template<>
std::wstring xtd::as< std::wstring > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"Gammasoft";
wstring result = as<wstring>(value);

◆ as< uint16 >() [1/37]

template<>
uint16 xtd::as< uint16 > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [2/37]

template<>
uint16 xtd::as< uint16 > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [3/37]

template<>
uint16 xtd::as< uint16 > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [4/37]

template<>
uint16 xtd::as< uint16 > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
uint16 result = as<uint16>(value);

◆ as< uint16 >() [5/37]

template<>
uint16 xtd::as< uint16 > ( char8  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
uint16 result = as<uint16>(value);

◆ as< uint16 >() [6/37]

template<>
uint16 xtd::as< uint16 > ( char16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
uint16 result = as<uint16>(value);

◆ as< uint16 >() [7/37]

template<>
uint16 xtd::as< uint16 > ( char32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
uint16 result = as<uint16>(value);

◆ as< uint16 >() [8/37]

template<>
uint16 xtd::as< uint16 > ( wchar  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
uint16 result = as<uint16>(value);

◆ as< uint16 >() [9/37]

template<>
uint16 xtd::as< uint16 > ( decimal  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [10/37]

template<>
uint16 xtd::as< uint16 > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [11/37]

template<>
uint16 xtd::as< uint16 > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [12/37]

template<>
uint16 xtd::as< uint16 > ( int16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [13/37]

template<>
uint16 xtd::as< uint16 > ( int32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [14/37]

template<>
uint16 xtd::as< uint16 > ( int64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [15/37]

template<>
uint16 xtd::as< uint16 > ( slong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [16/37]

template<>
uint16 xtd::as< uint16 > ( sbyte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [17/37]

template<>
uint16 xtd::as< uint16 > ( uint16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [18/37]

template<>
uint16 xtd::as< uint16 > ( uint32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [19/37]

template<>
uint16 xtd::as< uint16 > ( uint64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [20/37]

template<>
uint16 xtd::as< uint16 > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
uint16 result = as<uint16>(value);

◆ as< uint16 >() [21/37]

template<>
uint16 xtd::as< uint16 > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [22/37]

template<>
uint16 xtd::as< uint16 > ( const xtd::ustring value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a uint16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "0x2A";
uint16 result = as<uint16>(value, 16);

◆ as< uint16 >() [23/37]

template<>
uint16 xtd::as< uint16 > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [24/37]

template<>
uint16 xtd::as< uint16 > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [25/37]

template<>
uint16 xtd::as< uint16 > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [26/37]

template<>
uint16 xtd::as< uint16 > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [27/37]

template<>
uint16 xtd::as< uint16 > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [28/37]

template<>
uint16 xtd::as< uint16 > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [29/37]

template<>
uint16 xtd::as< uint16 > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [30/37]

template<>
uint16 xtd::as< uint16 > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [31/37]

template<>
uint16 xtd::as< uint16 > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [32/37]

template<>
uint16 xtd::as< uint16 > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [33/37]

template<>
uint16 xtd::as< uint16 > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [34/37]

template<>
uint16 xtd::as< uint16 > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [35/37]

template<>
uint16 xtd::as< uint16 > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [36/37]

template<>
uint16 xtd::as< uint16 > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
uint16 result = as<uint16>(value);

◆ as< uint16 >() [37/37]

template<>
uint16 xtd::as< uint16 > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint16 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
uint16 result = as<uint16>(value);

◆ as< uint32 >() [1/37]

template<>
uint32 xtd::as< uint32 > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [2/37]

template<>
uint32 xtd::as< uint32 > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [3/37]

template<>
uint32 xtd::as< uint32 > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [4/37]

template<>
uint32 xtd::as< uint32 > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
uint32 result = as<uint32>(value);

◆ as< uint32 >() [5/37]

template<>
uint32 xtd::as< uint32 > ( char8  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
uint32 result = as<uint32>(value);

◆ as< uint32 >() [6/37]

template<>
uint32 xtd::as< uint32 > ( char16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
uint32 result = as<uint32>(value);

◆ as< uint32 >() [7/37]

template<>
uint32 xtd::as< uint32 > ( char32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
uint32 result = as<uint32>(value);

◆ as< uint32 >() [8/37]

template<>
uint32 xtd::as< uint32 > ( wchar  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
uint32 result = as<uint32>(value);

◆ as< uint32 >() [9/37]

template<>
uint32 xtd::as< uint32 > ( decimal  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [10/37]

template<>
uint32 xtd::as< uint32 > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [11/37]

template<>
uint32 xtd::as< uint32 > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [12/37]

template<>
uint32 xtd::as< uint32 > ( int16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [13/37]

template<>
uint32 xtd::as< uint32 > ( int32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [14/37]

template<>
uint32 xtd::as< uint32 > ( int64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [15/37]

template<>
uint32 xtd::as< uint32 > ( slong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [16/37]

template<>
uint32 xtd::as< uint32 > ( sbyte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [17/37]

template<>
uint32 xtd::as< uint32 > ( uint16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [18/37]

template<>
uint32 xtd::as< uint32 > ( uint32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [19/37]

template<>
uint32 xtd::as< uint32 > ( uint64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [20/37]

template<>
uint32 xtd::as< uint32 > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
uint32 result = as<uint32>(value);

◆ as< uint32 >() [21/37]

template<>
uint32 xtd::as< uint32 > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [22/37]

template<>
uint32 xtd::as< uint32 > ( const xtd::ustring value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a uint32.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "0x2A";
uint32 result = as<uint32>(value, 16);

◆ as< uint32 >() [23/37]

template<>
uint32 xtd::as< uint32 > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [24/37]

template<>
uint32 xtd::as< uint32 > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [25/37]

template<>
uint32 xtd::as< uint32 > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [26/37]

template<>
uint32 xtd::as< uint32 > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [27/37]

template<>
uint32 xtd::as< uint32 > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [28/37]

template<>
uint32 xtd::as< uint32 > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [29/37]

template<>
uint32 xtd::as< uint32 > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [30/37]

template<>
uint32 xtd::as< uint32 > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [31/37]

template<>
uint32 xtd::as< uint32 > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [32/37]

template<>
uint32 xtd::as< uint32 > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [33/37]

template<>
uint32 xtd::as< uint32 > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [34/37]

template<>
uint32 xtd::as< uint32 > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [35/37]

template<>
uint32 xtd::as< uint32 > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [36/37]

template<>
uint32 xtd::as< uint32 > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
uint32 result = as<uint32>(value);

◆ as< uint32 >() [37/37]

template<>
uint32 xtd::as< uint32 > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint32 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
uint32 result = as<uint32>(value);

◆ as< uint64 >() [1/37]

template<>
uint64 xtd::as< uint64 > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [2/37]

template<>
uint64 xtd::as< uint64 > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [3/37]

template<>
uint64 xtd::as< uint64 > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [4/37]

template<>
uint64 xtd::as< uint64 > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
uint64 result = as<uint64>(value);

◆ as< uint64 >() [5/37]

template<>
uint64 xtd::as< uint64 > ( char8  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
uint64 result = as<uint64>(value);

◆ as< uint64 >() [6/37]

template<>
uint64 xtd::as< uint64 > ( char16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
uint64 result = as<uint64>(value);

◆ as< uint64 >() [7/37]

template<>
uint64 xtd::as< uint64 > ( char32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
uint64 result = as<uint64>(value);

◆ as< uint64 >() [8/37]

template<>
uint64 xtd::as< uint64 > ( wchar  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
uint64 result = as<uint64>(value);

◆ as< uint64 >() [9/37]

template<>
uint64 xtd::as< uint64 > ( decimal  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [10/37]

template<>
uint64 xtd::as< uint64 > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [11/37]

template<>
uint64 xtd::as< uint64 > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [12/37]

template<>
uint64 xtd::as< uint64 > ( int16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [13/37]

template<>
uint64 xtd::as< uint64 > ( int32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [14/37]

template<>
uint64 xtd::as< uint64 > ( int64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [15/37]

template<>
uint64 xtd::as< uint64 > ( slong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [16/37]

template<>
uint64 xtd::as< uint64 > ( sbyte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [17/37]

template<>
uint64 xtd::as< uint64 > ( uint16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [18/37]

template<>
uint64 xtd::as< uint64 > ( uint32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [19/37]

template<>
uint64 xtd::as< uint64 > ( uint64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [20/37]

template<>
uint64 xtd::as< uint64 > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
uint64 result = as<uint64>(value);

◆ as< uint64 >() [21/37]

template<>
uint64 xtd::as< uint64 > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [22/37]

template<>
uint64 xtd::as< uint64 > ( const xtd::ustring value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a uint64.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "0x2A";
uint64 result = as<uint64>(value, 16);

◆ as< uint64 >() [23/37]

template<>
uint64 xtd::as< uint64 > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [24/37]

template<>
uint64 xtd::as< uint64 > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [25/37]

template<>
uint64 xtd::as< uint64 > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [26/37]

template<>
uint64 xtd::as< uint64 > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [27/37]

template<>
uint64 xtd::as< uint64 > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [28/37]

template<>
uint64 xtd::as< uint64 > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [29/37]

template<>
uint64 xtd::as< uint64 > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [30/37]

template<>
uint64 xtd::as< uint64 > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [31/37]

template<>
uint64 xtd::as< uint64 > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [32/37]

template<>
uint64 xtd::as< uint64 > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [33/37]

template<>
uint64 xtd::as< uint64 > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [34/37]

template<>
uint64 xtd::as< uint64 > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [35/37]

template<>
uint64 xtd::as< uint64 > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [36/37]

template<>
uint64 xtd::as< uint64 > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
uint64 result = as<uint64>(value);

◆ as< uint64 >() [37/37]

template<>
uint64 xtd::as< uint64 > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new uint64 object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
uint64 result = as<uint64>(value);

◆ as< ustring >() [1/30]

template<>
ustring xtd::as< ustring > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
xtd::ulong result = as<xtd::ulong>(value);
Examples:
as.cpp, calculator.cpp, form_background_image2.cpp, interlocked.cpp, link_label.cpp, numeric_text_box.cpp, to_ustring.cpp, and vector_list2.cpp.

◆ as< ustring >() [2/30]

template<>
ustring xtd::as< ustring > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< ustring >() [3/30]

template<>
ustring xtd::as< ustring > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< ustring >() [4/30]

template<>
ustring xtd::as< ustring > ( xtd::byte  value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
ustring result = as<ustring>(value, 16);

◆ as< ustring >() [5/30]

template<>
ustring xtd::as< ustring > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
xtd::ulong result = as<xtd::ulong>(value);

◆ as< ustring >() [6/30]

template<>
ustring xtd::as< ustring > ( char8  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
xtd::ulong result = as<xtd::ulong>(value);

◆ as< ustring >() [7/30]

template<>
ustring xtd::as< ustring > ( char16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
xtd::ulong result = as<xtd::ulong>(value);

◆ as< ustring >() [8/30]

template<>
ustring xtd::as< ustring > ( char32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
xtd::ulong result = as<xtd::ulong>(value);

◆ as< ustring >() [9/30]

template<>
ustring xtd::as< ustring > ( wchar  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
xtd::ulong result = as<xtd::ulong>(value);

◆ as< ustring >() [10/30]

template<>
ustring xtd::as< ustring > ( decimal  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< ustring >() [11/30]

template<>
ustring xtd::as< ustring > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< ustring >() [12/30]

template<>
ustring xtd::as< ustring > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< ustring >() [13/30]

template<>
ustring xtd::as< ustring > ( int16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< ustring >() [14/30]

template<>
ustring xtd::as< ustring > ( int16  value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
ustring result = as<ustring>(value, 16);

◆ as< ustring >() [15/30]

template<>
ustring xtd::as< ustring > ( int32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< ustring >() [16/30]

template<>
ustring xtd::as< ustring > ( int32  value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
ustring result = as<ustring>(value, 16);

◆ as< ustring >() [17/30]

template<>
ustring xtd::as< ustring > ( int64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< ustring >() [18/30]

template<>
ustring xtd::as< ustring > ( int64  value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42;
ustring result = as<ustring>(value, 16);

◆ as< ustring >() [19/30]

template<>
ustring xtd::as< ustring > ( slong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< ustring >() [20/30]

template<>
ustring xtd::as< ustring > ( slong  value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42;
ustring result = as<ustring>(value, 16);

◆ as< ustring >() [21/30]

template<>
ustring xtd::as< ustring > ( sbyte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< ustring >() [22/30]

template<>
ustring xtd::as< ustring > ( sbyte  value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42;
ustring result = as<ustring>(value, 16);

◆ as< ustring >() [23/30]

template<>
ustring xtd::as< ustring > ( uint16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< ustring >() [24/30]

template<>
ustring xtd::as< ustring > ( uint16  value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42;
ustring result = as<ustring>(value, 16);

◆ as< ustring >() [25/30]

template<>
ustring xtd::as< ustring > ( uint32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< ustring >() [26/30]

template<>
ustring xtd::as< ustring > ( uint32  value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42;
ustring result = as<ustring>(value, 16);

◆ as< ustring >() [27/30]

template<>
ustring xtd::as< ustring > ( uint64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< ustring >() [28/30]

template<>
ustring xtd::as< ustring > ( uint64  value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42;
ustring result = as<ustring>(value, 16);

◆ as< ustring >() [29/30]

template<>
ustring xtd::as< ustring > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< ustring >() [30/30]

template<>
ustring xtd::as< ustring > ( xtd::ulong  value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::argument_exceptionvfrom_base is not 2, 8, 10, or 16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42;
ustring result = as<ustring>(value, 16);

◆ as< wchar >() [1/36]

template<>
wchar xtd::as< wchar > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
wchar result = as<wchar>(value);

◆ as< wchar >() [2/36]

template<>
wchar xtd::as< wchar > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
wchar result = as<wchar>(value);

◆ as< wchar >() [3/36]

template<>
wchar xtd::as< wchar > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
wchar result = as<wchar>(value);

◆ as< wchar >() [4/36]

template<>
wchar xtd::as< wchar > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
wchar result = as<wchar>(value);

◆ as< wchar >() [5/36]

template<>
wchar xtd::as< wchar > ( char8  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
wchar result = as<wchar>(value);

◆ as< wchar >() [6/36]

template<>
wchar xtd::as< wchar > ( char16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
wchar result = as<wchar>(value);

◆ as< wchar >() [7/36]

template<>
wchar xtd::as< wchar > ( char32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
wchar result = as<wchar>(value);

◆ as< wchar >() [8/36]

template<>
wchar xtd::as< wchar > ( wchar  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
wchar result = as<wchar>(value);

◆ as< wchar >() [9/36]

template<>
wchar xtd::as< wchar > ( decimal  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
wchar result = as<wchar>(value);

◆ as< wchar >() [10/36]

template<>
wchar xtd::as< wchar > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
wchar result = as<wchar>(value);

◆ as< wchar >() [11/36]

template<>
wchar xtd::as< wchar > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
wchar result = as<wchar>(value);

◆ as< wchar >() [12/36]

template<>
wchar xtd::as< wchar > ( int16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
wchar result = as<wchar>(value);

◆ as< wchar >() [13/36]

template<>
wchar xtd::as< wchar > ( int32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
wchar result = as<wchar>(value);

◆ as< wchar >() [14/36]

template<>
wchar xtd::as< wchar > ( int64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
wchar result = as<wchar>(value);

◆ as< wchar >() [15/36]

template<>
wchar xtd::as< wchar > ( slong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
wchar result = as<wchar>(value);

◆ as< wchar >() [16/36]

template<>
wchar xtd::as< wchar > ( sbyte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
wchar result = as<wchar>(value);

◆ as< wchar >() [17/36]

template<>
wchar xtd::as< wchar > ( uint16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
wchar result = as<wchar>(value);

◆ as< wchar >() [18/36]

template<>
wchar xtd::as< wchar > ( uint32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
wchar result = as<wchar>(value);

◆ as< wchar >() [19/36]

template<>
wchar xtd::as< wchar > ( uint64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
wchar result = as<wchar>(value);

◆ as< wchar >() [20/36]

template<>
wchar xtd::as< wchar > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
wchar result = as<wchar>(value);

◆ as< wchar >() [21/36]

template<>
wchar xtd::as< wchar > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
wchar result = as<wchar>(value);

◆ as< wchar >() [22/36]

template<>
wchar xtd::as< wchar > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
wchar result = as<wchar>(value);

◆ as< wchar >() [23/36]

template<>
wchar xtd::as< wchar > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [24/36]

template<>
wchar xtd::as< wchar > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [25/36]

template<>
wchar xtd::as< wchar > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [26/36]

template<>
wchar xtd::as< wchar > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [27/36]

template<>
wchar xtd::as< wchar > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
wchar result = as<wchar>(value);

◆ as< wchar >() [28/36]

template<>
wchar xtd::as< wchar > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
wchar result = as<wchar>(value);

◆ as< wchar >() [29/36]

template<>
wchar xtd::as< wchar > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [30/36]

template<>
wchar xtd::as< wchar > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [31/36]

template<>
wchar xtd::as< wchar > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [32/36]

template<>
wchar xtd::as< wchar > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [33/36]

template<>
wchar xtd::as< wchar > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [34/36]

template<>
wchar xtd::as< wchar > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [35/36]

template<>
wchar xtd::as< wchar > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
wchar result = as<wchar>(value);

◆ as< wchar >() [36/36]

template<>
wchar xtd::as< wchar > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new wchar object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
wchar result = as<wchar>(value);

◆ as< xtd::byte >() [1/37]

template<>
xtd::byte xtd::as< xtd::byte > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [2/37]

template<>
xtd::byte xtd::as< xtd::byte > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [3/37]

template<>
xtd::byte xtd::as< xtd::byte > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [4/37]

template<>
xtd::byte xtd::as< xtd::byte > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [5/37]

template<>
xtd::byte xtd::as< xtd::byte > ( char8  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [6/37]

template<>
xtd::byte xtd::as< xtd::byte > ( char16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [7/37]

template<>
xtd::byte xtd::as< xtd::byte > ( char32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [8/37]

template<>
xtd::byte xtd::as< xtd::byte > ( wchar  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [9/37]

template<>
xtd::byte xtd::as< xtd::byte > ( decimal  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [10/37]

template<>
xtd::byte xtd::as< xtd::byte > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [11/37]

template<>
xtd::byte xtd::as< xtd::byte > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [12/37]

template<>
xtd::byte xtd::as< xtd::byte > ( int16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [13/37]

template<>
xtd::byte xtd::as< xtd::byte > ( int32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [14/37]

template<>
xtd::byte xtd::as< xtd::byte > ( int64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [15/37]

template<>
xtd::byte xtd::as< xtd::byte > ( slong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [16/37]

template<>
xtd::byte xtd::as< xtd::byte > ( sbyte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [17/37]

template<>
xtd::byte xtd::as< xtd::byte > ( uint16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [18/37]

template<>
xtd::byte xtd::as< xtd::byte > ( uint32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [19/37]

template<>
xtd::byte xtd::as< xtd::byte > ( uint64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [20/37]

template<>
xtd::byte xtd::as< xtd::byte > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [21/37]

template<>
xtd::byte xtd::as< xtd::byte > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a byte.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [22/37]

template<>
xtd::byte xtd::as< xtd::byte > ( const xtd::ustring value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a byte.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "0x2A";
xtd::byte result = as<xtd::byte>(value, 16);

◆ as< xtd::byte >() [23/37]

template<>
xtd::byte xtd::as< xtd::byte > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [24/37]

template<>
xtd::byte xtd::as< xtd::byte > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [25/37]

template<>
xtd::byte xtd::as< xtd::byte > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [26/37]

template<>
xtd::byte xtd::as< xtd::byte > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [27/37]

template<>
xtd::byte xtd::as< xtd::byte > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [28/37]

template<>
xtd::byte xtd::as< xtd::byte > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [29/37]

template<>
xtd::byte xtd::as< xtd::byte > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [30/37]

template<>
xtd::byte xtd::as< xtd::byte > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [31/37]

template<>
xtd::byte xtd::as< xtd::byte > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [32/37]

template<>
xtd::byte xtd::as< xtd::byte > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [33/37]

template<>
xtd::byte xtd::as< xtd::byte > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [34/37]

template<>
xtd::byte xtd::as< xtd::byte > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [35/37]

template<>
xtd::byte xtd::as< xtd::byte > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [36/37]

template<>
xtd::byte xtd::as< xtd::byte > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::byte >() [37/37]

template<>
xtd::byte xtd::as< xtd::byte > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::byte object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
xtd::byte result = as<xtd::byte>(value);

◆ as< xtd::ulong >() [1/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( std::any  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
std::any value = true;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [2/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( bool  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
bool value = true;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [3/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::byte value = 42;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [4/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( char  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char value = 'a';
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [5/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( char8  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8 value = u8'a';
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [6/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( char16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16 value = u'a';
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [7/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( char32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32 value = u'a';
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [8/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( wchar  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar value = u'a';
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [9/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( decimal  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
decimal value = 42.50l;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [10/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( double  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
double value = 42.50;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [11/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( float  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
float value = 42.50f;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [12/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( int16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int16 value = 42;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [13/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( int32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32 value = 42;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [14/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( int64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int64 value = 42l;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [15/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( slong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
slong value = 42ll;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [16/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( sbyte  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42ll;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [17/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( uint16  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint16 value = 42u;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [18/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( uint32  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint32 value = 42u;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [19/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( uint64  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
uint64 value = 42ul;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [20/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
xtd::ulong value = 42ull;
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [21/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [22/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const xtd::ustring value,
xtd::byte  from_base 
)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a xtd::ulong.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "0x2A";
xtd::ulong result = as<xtd::ulong>(value, 16);

◆ as< xtd::ulong >() [23/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [24/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [25/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [26/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [27/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [28/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [29/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [30/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [31/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [32/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [33/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [34/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [35/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [36/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ulong >() [37/37]

template<>
xtd::ulong xtd::as< xtd::ulong > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new xtd::ulong object converted from value.
Exceptions
xtd::argument_exceptionvalue does not represent a bool.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"42";
xtd::ulong result = as<xtd::ulong>(value);

◆ as< xtd::ustring >() [1/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( const std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [2/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( std::string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
string value = "Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [3/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( const char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char* value = "Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [4/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( char *  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char* value = "Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [5/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( const xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [6/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( xtd::ustring value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
ustring value = "Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [7/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( const std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [8/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( std::u8string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u8string value = u8"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [9/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( const char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char8* value = u8"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [10/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( char8 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char8* value = u8"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [11/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( const std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [12/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( std::u16string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u16string value = u"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [13/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( const char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char16* value = u"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [14/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( char16 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char16* value = u"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [15/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( const std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [16/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( std::u32string &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
u32string value = U"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [17/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( const char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const char32* value = U"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [18/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( char32 value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
char32* value = U"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [19/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( const std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [20/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( std::wstring &  value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wstring value = L"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [21/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( const wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
const wchar* value = L"Gammasoft";
ustring result = as<ustring>(value);

◆ as< xtd::ustring >() [22/22]

template<>
xtd::ustring xtd::as< xtd::ustring > ( wchar value)
inline

#include <xtd.core/include/xtd/as.h>

Casts a type into another type.

Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
wchar* value = L"Gammasoft";
ustring result = as<ustring>(value);

◆ cnull()

std::ostream xtd::cnull ( nullptr  )
inline

#include <xtd.core/include/xtd/cnull.h>

Provides a null std::ostream.

Header
#include <xtd/cnull>
Namespace
xtd
Library
xtd.core

◆ ctrace()

std::ostream xtd::ctrace ( nullptr  )
inline

#include <xtd.core/include/xtd/ctrace.h>

Provides an std::ostream for xtd::diagnostics::trace.

Header
#include <xtd/ctrace>
Namespace
xtd
Library
xtd.core
Examples:
delegate_multicast.cpp, form_and_messages.cpp, form_window_state.cpp, hello_world_diagnostics2.cpp, key_events.cpp, and numeric_text_box.cpp.

◆ is() [1/6]

template<typename type_t >
bool xtd::is ( std::any  value)

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples:
console_in_out.cpp, file_assert.cpp, file_assert_are_equal.cpp, file_assert_are_not_equal.cpp, file_assume.cpp, file_assume_are_equal.cpp, file_assume_are_not_equal.cpp, file_valid.cpp, file_valid_are_equal.cpp, and file_valid_are_not_equal.cpp.

◆ is() [2/6]

template<typename type_t , typename param_t >
bool xtd::is ( const param_t *  value)

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core

◆ is() [3/6]

template<typename type_t , typename param_t >
bool xtd::is ( const param_t &  value)

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core

◆ is() [4/6]

template<typename type_t , typename param_t >
bool xtd::is ( param_t *  value)

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core

◆ is() [5/6]

template<typename type_t , typename param_t >
bool xtd::is ( param_t &  value)

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core

◆ is() [6/6]

template<typename new_type_t , typename current_type_t >
bool xtd::is ( std::shared_ptr< current_type_t > &  value)

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core

◆ is< bool >()

template<>
bool xtd::is< bool > ( bool  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main()->int {
bool b = false;
std::cout << "b " << is<bool>(b) ? "is" : "isn't" << " bool" << endl;
}

◆ is< decimal >()

template<>
bool xtd::is< decimal > ( decimal  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main()->int {
decimal d = 4.2;
std::cout << "d " << is<decimal>(d) ? "is" : "isn't" << " decimal" << endl;
}

◆ is< double >()

template<>
bool xtd::is< double > ( double  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main()->int {
double d = 4.2;
std::cout << "d " << is<double>(d) ? "is" : "isn't" << " double" << endl;
}

◆ is< float >()

template<>
bool xtd::is< float > ( float  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main()->int {
float f = 4.2;
std::cout << "f " << is<float>(f) ? "is" : "isn't" << " float" << endl;
}

◆ is< int16 >()

template<>
bool xtd::is< int16 > ( int16  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main()->int {
int16 i = 42;
std::cout << "i " << is<int16>(i) ? "is" : "isn't" << " int16" << endl;
}

◆ is< int32 >()

template<>
bool xtd::is< int32 > ( int32  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main()->int {
int32 i = 42;
std::cout << "i " << is<int32>(i) ? "is" : "isn't" << " int32" << endl;
}

◆ is< int64 >()

template<>
bool xtd::is< int64 > ( int64  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main()->int {
int64 i = 42;
std::cout << "i " << is<int64>(i) ? "is" : "isn't" << " int64" << endl;
}

◆ is< sbyte >()

template<>
bool xtd::is< sbyte > ( sbyte  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main()->int {
sbyte i = 42;
std::cout << "i " << is<sbyte>(i) ? "is" : "isn't" << " sbyte" << endl;
}

◆ is< slong >()

template<>
bool xtd::is< slong > ( slong  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main()->int {
slong i = 42;
std::cout << "i " << is<slong>(i) ? "is" : "isn't" << " slong" << endl;
}

◆ is< std::any >()

template<>
bool xtd::is< std::any > ( std::any  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core

◆ is< uint16 >()

template<>
bool xtd::is< uint16 > ( uint16  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main()->int {
uint16 u = 42;
std::cout << "u " << is<uint16>(u) ? "is" : "isn't" << " uint16" << endl;
}

◆ is< uint32 >()

template<>
bool xtd::is< uint32 > ( uint32  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main()->int {
uint32 u = 42;
std::cout << "u " << is<uint32>(u) ? "is" : "isn't" << " uint32" << endl;
}

◆ is< uint64 >()

template<>
bool xtd::is< uint64 > ( uint64  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main()->int {
uint64 u = 42;
std::cout << "u " << is<uint64>(u) ? "is" : "isn't" << " uint64" << endl;
}

◆ is< xtd::byte >()

template<>
bool xtd::is< xtd::byte > ( xtd::byte  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main()->int {
xtd::byte u = 42;
std::cout << "u " << is<xtd::byte>(u) ? "is" : "isn't" << " xtd::byte" << endl;
}

◆ is< xtd::ulong >()

template<>
bool xtd::is< xtd::ulong > ( xtd::ulong  value)
inline

#include <xtd.core/include/xtd/is.h>

Checks if the result of an expression is compatible with a given type.

Header
#include <xtd/is>
Namespace
xtd
Library
xtd.core
Examples
auto main()->int {
xtd::ulong u = 42;
std::cout << "u " << is<xtd::ulong>(i) ? "is" : "isn't" << " xtd::ulong" << endl;
}

◆ parse() [1/8]

template<typename value_t >
value_t xtd::parse ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse() [2/8]

template<typename value_t >
value_t xtd::parse ( const std::string &  str,
const std::locale &  locale 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse() [3/8]

template<typename value_t >
value_t xtd::parse ( const std::string &  str,
const std::string &  fmt 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse() [4/8]

template<typename value_t >
value_t xtd::parse ( const std::string &  str,
number_styles   
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse() [5/8]

template<typename value_t >
value_t xtd::parse ( const std::string &  str,
number_styles  ,
const std::locale &  locale 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse() [6/8]

template<typename value_t >
value_t xtd::parse ( const std::wstring &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse() [7/8]

template<typename value_t >
value_t xtd::parse ( const std::u16string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse() [8/8]

template<typename value_t >
value_t xtd::parse ( const std::u32string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< bool >()

template<>
bool xtd::parse< bool > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core
Examples:
parse_boolean.cpp.

◆ parse< char >() [1/2]

template<>
char xtd::parse< char > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< char >() [2/2]

template<>
char xtd::parse< char > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< double >() [1/3]

template<>
double xtd::parse< double > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core
Examples:
calculator.cpp, and parse_floating_point.cpp.

◆ parse< double >() [2/3]

template<>
double xtd::parse< double > ( const std::string &  str,
number_styles  styles,
const std::locale &  locale 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< double >() [3/3]

template<>
double xtd::parse< double > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< float >() [1/3]

template<>
float xtd::parse< float > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< float >() [2/3]

template<>
float xtd::parse< float > ( const std::string &  str,
number_styles  styles,
const std::locale &  locale 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< float >() [3/3]

template<>
float xtd::parse< float > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< int >() [1/2]

template<>
int xtd::parse< int > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core
Examples:
application_restart.cpp, parse_numeric.cpp, stopwatch.cpp, and to_int32.cpp.

◆ parse< int >() [2/2]

template<>
int xtd::parse< int > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< long >() [1/2]

template<>
long xtd::parse< long > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< long >() [2/2]

template<>
long xtd::parse< long > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< long double >() [1/3]

template<>
long double xtd::parse< long double > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< long double >() [2/3]

template<>
long double xtd::parse< long double > ( const std::string &  str,
number_styles  styles,
const std::locale &  locale 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< long double >() [3/3]

template<>
long double xtd::parse< long double > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< long long >() [1/2]

template<>
long long xtd::parse< long long > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< long long >() [2/2]

template<>
long long xtd::parse< long long > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< short >() [1/2]

template<>
short xtd::parse< short > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< short >() [2/2]

template<>
short xtd::parse< short > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< std::string >()

template<>
std::string xtd::parse< std::string > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned char >() [1/2]

template<>
unsigned char xtd::parse< unsigned char > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core
Examples:
to_byte.cpp.

◆ parse< unsigned char >() [2/2]

template<>
unsigned char xtd::parse< unsigned char > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned int >() [1/2]

template<>
unsigned int xtd::parse< unsigned int > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned int >() [2/2]

template<>
unsigned int xtd::parse< unsigned int > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned long >() [1/2]

template<>
unsigned long xtd::parse< unsigned long > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned long >() [2/2]

template<>
unsigned long xtd::parse< unsigned long > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned long long >() [1/2]

template<>
unsigned long long xtd::parse< unsigned long long > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned long long >() [2/2]

template<>
unsigned long long xtd::parse< unsigned long long > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned short >() [1/2]

template<>
unsigned short xtd::parse< unsigned short > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< unsigned short >() [2/2]

template<>
unsigned short xtd::parse< unsigned short > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< xtd::sbyte >() [1/2]

template<>
xtd::sbyte xtd::parse< xtd::sbyte > ( const std::string &  str,
number_styles  styles 
)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ parse< xtd::sbyte >() [2/2]

template<>
xtd::sbyte xtd::parse< xtd::sbyte > ( const std::string &  str)
inline

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ to_ptr() [1/8]

template<typename type_t >
static const type_t* xtd::convert_pointer::to_ptr ( const type_t &  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const button* value = new xtd::forms::button();
const control* result = convert::to_ptr<xtd::forms::control>(value);

◆ to_ptr() [2/8]

template<typename type_t >
static type_t* xtd::convert_pointer::to_ptr ( type_t &  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
button* value = new xtd::forms::button();
control* result = convert::to_ptr<xtd::forms::control>(value);

◆ to_ptr() [3/8]

template<typename type_t >
static const type_t* xtd::convert_pointer::to_ptr ( const type_t *  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const button* value = new xtd::forms::button();
const control* result = convert::to_ptr<xtd::forms::control>(value);

◆ to_ptr() [4/8]

template<typename type_t >
static type_t* xtd::convert_pointer::to_ptr ( type_t *  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
button* value = new xtd::forms::button();
control* result = convert::to_ptr<xtd::forms::control>(value);

◆ to_ptr() [5/8]

template<typename new_type_t , typename current_type_t >
static const new_type_t* xtd::convert_pointer::to_ptr ( const current_type_t *  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const button* value = new xtd::forms::button();
const control* result = convert::to_ptr<xtd::forms::control>(value);

◆ to_ptr() [6/8]

template<typename new_type_t , typename current_type_t >
static new_type_t* xtd::convert_pointer::to_ptr ( current_type_t *  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
button* value = new xtd::forms::button();
control* result = convert::to_ptr<xtd::forms::control>(value);

◆ to_ptr() [7/8]

template<typename new_type_t , typename current_type_t >
static const new_type_t* xtd::convert_pointer::to_ptr ( const current_type_t &  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const button* value = new xtd::forms::button();
const control* result = convert::to_ptr<xtd::forms::control>(value);

◆ to_ptr() [8/8]

template<typename new_type_t , typename current_type_t >
static new_type_t* xtd::convert_pointer::to_ptr ( current_type_t &  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
button* value = new xtd::forms::button();
control* result = convert::to_ptr<xtd::forms::control>(value);

◆ to_ref() [1/8]

template<typename type_t >
static const type_t& xtd::convert_pointer::to_ref ( const type_t &  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const button* value = new xtd::forms::button();
const button& result = convert::to_ref<xtd::forms::control>(*value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_ref() [2/8]

template<typename type_t >
static type_t& xtd::convert_pointer::to_ref ( type_t &  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
button* value = new xtd::forms::button();
button& result = convert::to_ref<xtd::forms::control>(*value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_ref() [3/8]

template<typename type_t >
static const type_t& xtd::convert_pointer::to_ref ( const type_t *  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const button* value = new xtd::forms::button();
const button& result = convert::to_ref<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_ref() [4/8]

template<typename type_t >
static type_t& xtd::convert_pointer::to_ref ( type_t *  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
button* value = new xtd::forms::button();
button& result = convert::to_ref<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_ref() [5/8]

template<typename new_type_t , typename current_type_t >
static const new_type_t& xtd::convert_pointer::to_ref ( const current_type_t &  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const button* value = new xtd::forms::button();
const control& result = convert::to_ref<xtd::forms::control>(*value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_ref() [6/8]

template<typename new_type_t , typename current_type_t >
static new_type_t& xtd::convert_pointer::to_ref ( current_type_t &  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
button* value = new xtd::forms::button();
control& result = convert::to_ref<xtd::forms::control>(*value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_ref() [7/8]

template<typename new_type_t , typename current_type_t >
static const new_type_t& xtd::convert_pointer::to_ref ( const current_type_t *  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const button* value = new xtd::forms::button();
const control& result = convert::to_ref<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_ref() [8/8]

template<typename new_type_t , typename current_type_t >
static new_type_t& xtd::convert_pointer::to_ref ( current_type_t *  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
button* value = new xtd::forms::button();
control& result = convert::to_ref<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_shared_ptr() [1/3]

template<typename new_type_t , typename current_type_t >
static std::shared_ptr<new_type_t> xtd::convert_pointer::to_shared_ptr ( const std::shared_ptr< current_type_t > &  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const std::shared_ptr<button> value = std::make_shared<xtd::forms::button>();
const std::shared_ptr<control> result = as<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_shared_ptr() [2/3]

template<typename new_type_t , typename current_type_t >
static std::shared_ptr<new_type_t> xtd::convert_pointer::to_shared_ptr ( std::shared_ptr< current_type_t > &  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
std::shared_ptr<control> result = as<xtd::forms::control>(std::make_shared<xtd::forms::button>());
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_shared_ptr() [3/3]

template<typename new_type_t , typename current_type_t >
static std::shared_ptr<new_type_t> xtd::convert_pointer::to_shared_ptr ( std::shared_ptr< current_type_t > &&  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
const std::shared_ptr<button> value = std::make_shared<xtd::forms::button>();
const std::shared_ptr<control> result = as<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_string() [1/50]

template<typename value_t >
std::string xtd::to_string ( const value_t &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [2/50]

template<>
std::string xtd::to_string ( const bool &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [3/50]

template<>
std::string xtd::to_string ( const sbyte value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [4/50]

template<>
std::string xtd::to_string ( const char &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [5/50]

template<>
std::string xtd::to_string ( const unsigned char &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [6/50]

template<>
std::string xtd::to_string ( const short &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [7/50]

template<>
std::string xtd::to_string ( const unsigned short &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [8/50]

template<>
std::string xtd::to_string ( const int &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [9/50]

template<>
std::string xtd::to_string ( const unsigned int &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [10/50]

template<>
std::string xtd::to_string ( const long &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [11/50]

template<>
std::string xtd::to_string ( const unsigned long &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [12/50]

template<>
std::string xtd::to_string ( const long long &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [13/50]

template<>
std::string xtd::to_string ( const unsigned long long &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [14/50]

template<>
std::string xtd::to_string ( const float &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [15/50]

template<>
std::string xtd::to_string ( const double &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [16/50]

template<>
std::string xtd::to_string ( const long double &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [17/50]

template<>
std::string xtd::to_string ( const std::chrono::system_clock::time_point &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [18/50]

template<>
std::string xtd::to_string ( const std::tm &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [19/50]

template<typename type_t , typename Period >
std::string xtd::to_string ( const std::chrono::duration< type_t, Period > &  value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [20/50]

template<>
std::string xtd::to_string ( const char8 value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [21/50]

template<>
std::string xtd::to_string ( const char16 value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [22/50]

template<>
std::string xtd::to_string ( const char32 value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [23/50]

template<>
std::string xtd::to_string ( const wchar value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [24/50]

template<typename value_t >
std::string xtd::to_string ( const value_t &  value,
const std::string &  fmt 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
Remarks
for more information about format see Format.

◆ to_string() [25/50]

template<typename value_t >
std::wstring xtd::to_string ( const value_t &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [26/50]

template<>
std::wstring xtd::to_string ( const bool &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [27/50]

template<>
std::wstring xtd::to_string ( const sbyte value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [28/50]

template<>
std::wstring xtd::to_string ( const char &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [29/50]

template<>
std::wstring xtd::to_string ( const unsigned char &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [30/50]

template<>
std::wstring xtd::to_string ( const short &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [31/50]

template<>
std::wstring xtd::to_string ( const unsigned short &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [32/50]

template<>
std::wstring xtd::to_string ( const int &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [33/50]

template<>
std::wstring xtd::to_string ( const unsigned int &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [34/50]

template<>
std::wstring xtd::to_string ( const long &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [35/50]

template<>
std::wstring xtd::to_string ( const unsigned long &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [36/50]

template<>
std::wstring xtd::to_string ( const long long &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [37/50]

template<>
std::wstring xtd::to_string ( const unsigned long long &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [38/50]

template<>
std::wstring xtd::to_string ( const float &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [39/50]

template<>
std::wstring xtd::to_string ( const double &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [40/50]

template<>
std::wstring xtd::to_string ( const long double &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [41/50]

template<>
std::wstring xtd::to_string ( const std::chrono::system_clock::time_point &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [42/50]

template<>
std::wstring xtd::to_string ( const std::tm &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [43/50]

template<typename type_t , typename Period >
std::wstring xtd::to_string ( const std::chrono::duration< type_t, Period > &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [44/50]

template<>
std::wstring xtd::to_string ( const std::wstring &  value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [45/50]

template<>
std::wstring xtd::to_string ( const char8 value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [46/50]

template<>
std::wstring xtd::to_string ( const char16 value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [47/50]

template<>
std::wstring xtd::to_string ( const char32 value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [48/50]

template<>
std::wstring xtd::to_string ( const wchar value,
const std::wstring &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.

◆ to_string() [49/50]

template<typename value_t >
std::wstring xtd::to_string ( const value_t &  value,
const std::wstring &  fmt 
)
inline

#include <xtd.core/include/xtd/to_string.h>

Convert a specified value into a string with specified format.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
Remarks
for more information about format see Format.

◆ to_string() [50/50]

template<>
std::string xtd::to_string ( const date_time value,
const std::string &  fmt,
const std::locale &  loc 
)
inline

#include <xtd.core/include/xtd/date_time.h>

Convert a specified value into a string with specified format and locale.

Namespace
xtd
Library
xtd.core
Parameters
valueValue to convert.
fmtA composite format string.
locAn object of class std::locale is an immutable indexed set of immutable facets.
Remarks
for more information about format see Format.
Examples:
application_restart.cpp, as.cpp, border_style.cpp, boxing.cpp, emoticons.cpp, format_any.cpp, format_class.cpp, format_class_object.cpp, format_class_with_specified_formating.cpp, interface.cpp, interface2.cpp, math_assert.cpp, math_assume.cpp, math_valid.cpp, minesweeper.cpp, mixing_std_and_xtd_threads.cpp, numeric_text_box.cpp, sprintf_class.cpp, sprintf_class_with_specified_formating.cpp, static.cpp, static_object.cpp, and static_object2.cpp.

◆ to_unique_ptr() [1/2]

template<typename new_type_t , typename current_type_t >
static std::unique_ptr<new_type_t> xtd::convert_pointer::to_unique_ptr ( std::unique_ptr< current_type_t > &  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
std::unique_ptr<button> value = std::make_unique<xtd::forms::button>();
std::unique_ptr<control> result = as<xtd::forms::control>(value);
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ to_unique_ptr() [2/2]

template<typename new_type_t , typename current_type_t >
static std::unique_ptr<new_type_t> xtd::convert_pointer::to_unique_ptr ( std::unique_ptr< current_type_t > &&  value)
inlinestatic

#include <xtd.core/include/xtd/convert_pointer.h>

Casts a type into another type.

Namespace
xtd
Library
xtd.core
Examples
std::unique_ptr<control> result = as<xtd::forms::control>(std::make_unique<xtd::forms::button>());
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.

◆ try_parse() [1/8]

template<typename value_t , typename char_t >
bool xtd::try_parse ( const std::basic_string< char_t > &  str,
value_t &  value 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core
Examples:
console_beep3.cpp, environment_exit_code.cpp, main.cpp, numeric_text_box.cpp, startup.cpp, and stopwatch.cpp.

◆ try_parse() [2/8]

template<typename value_t , typename char_t >
bool xtd::try_parse ( const std::basic_string< char_t > &  str,
value_t &  value,
const std::locale &  locale 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [3/8]

template<typename value_t , typename char_t >
bool xtd::try_parse ( const char_t *  str,
value_t &  value 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [4/8]

template<typename value_t , typename char_t >
bool xtd::try_parse ( const char_t *  str,
value_t &  value,
const std::locale &  locale 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [5/8]

template<typename value_t , typename char_t >
bool xtd::try_parse ( const std::basic_string< char_t > &  str,
value_t &  value,
number_styles  style 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [6/8]

template<typename value_t , typename char_t >
bool xtd::try_parse ( const std::basic_string< char_t > &  str,
value_t &  value,
number_styles  style,
const std::locale &  locale 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [7/8]

template<typename value_t , typename char_t >
bool xtd::try_parse ( const char_t *  str,
value_t &  value,
number_styles  style 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ try_parse() [8/8]

template<typename value_t , typename char_t >
bool xtd::try_parse ( const char_t *  str,
value_t &  value,
number_styles  style,
const std::locale &  locale 
)
inlinenoexcept

#include <xtd.core/include/xtd/parse.h>

Convert a string into a type.

Namespace
xtd
Library
xtd.core

◆ unused()

template<typename ... args_t>
void xtd::unused ( args_t &&...  args)

#include <xtd.core/include/xtd/unused.h>

It may be used to suppress the "unused variable" or "unused local typedefs" compiler warnings when the variable or typedef can't be removed or commented out, e.g. when some blocks of the code are conditionally activated.

Namespace
xtd
Library
xtd.core
Parameters
argsvariables to suppress the unused warning
Examples
This example sho how to use Unused():

Variable Documentation

◆ cdebugstreambuf

std::ostream cdebug & xtd::cdebugstreambuf
inline

#include <xtd.core/include/xtd/cdebug.h>

A xtd::debugstreambuf variable used by xtd::cdebug ostream.

Provides an std::ostream for xtd::diagnostics::debug.

Header
#include <xtd/cdebug>
Namespace
xtd
Library
xtd.core