Files | Namespaces | Classes | Functions
Strings

Files

file  string.cuh
 String functions.
 

Namespaces

 cudf::strings
 Strings column APIs.
 

Classes

class  cudf::string_view
 A non-owning, immutable view of device data that is a variable length char array representing a UTF-8 string. More...
 
class  cudf::strings_column_view
 Given a column-view of strings type, an instance of this class provides a wrapper on this compound column for strings operations. More...
 

Functions

bool cudf::strings::is_integer (string_view const &d_str)
 Returns true if all characters in the string are valid for conversion to an integer. More...
 
bool cudf::strings::is_nan_str (string_view const &d_str)
 Returns true if input contains the not-a-number string. More...
 
bool cudf::strings::is_inf_str (string_view const &d_str)
 Returns true if input contains the infinity string. More...
 
bool cudf::strings::is_float (string_view const &d_str)
 Returns true if all characters in the string are valid for conversion to a float type. More...
 

Detailed Description

Function Documentation

◆ is_float()

bool cudf::strings::is_float ( string_view const &  d_str)
inline

Returns true if all characters in the string are valid for conversion to a float type.

Valid characters are in [-+0-9eE.]. The sign character (+/-) is optional but if present must be the first character. The sign character may also optionally appear right after the 'e' or 'E' if the string is formatted with scientific notation. The decimal character can appear only once and never after the 'e' or 'E' character. An empty string returns false. No bounds checking is performed to verify if the value would fit within a specific float type. The following strings are also allowed and will return true: "NaN", "NAN", "Inf", "INF", "INFINITY"

Parameters
d_strString to check.
Returns
true if string has valid float characters

Definition at line 113 of file string.cuh.

◆ is_inf_str()

bool cudf::strings::is_inf_str ( string_view const &  d_str)
inline

Returns true if input contains the infinity string.

The following are valid for this function: "INF", "INFINITY", and "Inf"

Parameters
d_strinput string
Returns
true if input is as valid Inf string.

Definition at line 78 of file string.cuh.

◆ is_integer()

bool cudf::strings::is_integer ( string_view const &  d_str)
inline

Returns true if all characters in the string are valid for conversion to an integer.

Valid characters are in [-+0-9]. The sign character (+/-) is optional but if present must be the first character. An empty string returns false. No bounds checking is performed to verify if the integer will fit within a specific integer type.

Parameters
d_strString to check.
Returns
true if string has valid integer characters

Definition at line 46 of file string.cuh.

◆ is_nan_str()

bool cudf::strings::is_nan_str ( string_view const &  d_str)
inline

Returns true if input contains the not-a-number string.

The following are valid for this function: "NAN" and "NaN"

Parameters
d_strinput string
Returns
true if input is as valid NaN string.

Definition at line 64 of file string.cuh.