
String manipulators
changeCase | Changes the case of a string. (Deprecated: see str_lower/str_upper.) |
changeCaseChar | Changes the case of each character in a string. (Deprecated: see str_switch.) |
charactertostring | Coerces values of type character to values of type string (deprecated; use tostring). |
chartostring | Coerces values of type character to values of type string (deprecated; use tostring). |
cla_sq | Create a string that uses single quotes (sq) to enclose command line assignment (CLA) statements for later use by NCL's system procedure. |
get_file_suffix | Extract the suffix associated with a file name. |
indStrSubset | Returns the indices corresponding to the location of the substring, if it is a subset of the other given string. (Deprecated: see str_index_of_substr.) |
is_string_numeric | Returns True for every element of the input string array that contains a numeric value. |
isStrSubset | Return True or False if one string is a subset of another string. |
keyword_values | Read a text file that contains keywords and one-or-more values (similar to fortran NAMELIST). |
oneDtostring | Converts a 1-dimensional array to a single string. |
print_table | Prints formatted elements from a list to stdout. |
replaceSingleChar | Within a string replace one character with another character. (Deprecated: see str_sub_str.) |
sprintf | Converts floats or doubles into formatted strings. |
sprinti | Converts integers into formatted strings. |
str_capital | Capitalizes all words in each string. |
str_concat | Concatenates all strings into a single string. |
str_fields_count | Counts the number of fields separated by the given delimiters in an array of strings. |
str_get_cols | Returns an array of substrings, given a start and end index into the given string. |
str_get_dq | Returns the double quote (") character as a string. |
str_get_field | Returns an array of substrings given a field number and a combination of delimiters. |
str_get_nl | Returns the newline (\n) character as a string. |
str_get_sq | Returns the single quote (') character as a string. |
str_get_tab | Returns the tab ('\t' in C) character as a string. |
str_index_of_substr | Returns the start indexes where one or more occurrences of a substring is found in a string. |
str_insert | Inserts a substring into the given strings. |
str_is_blank | Returns True for strings that contain all blanks. |
str_join | Joins all strings into one string, with each string separated by delimiter. |
str_left_strip | Strips leading spaces and TABs from the input strings. |
str_lower | Converts all input strings to lowercase. |
str_match | Returns a list of strings that contain the given substring (case sensitive). |
str_match_bool | Returns a logical array of True/False/Missing indicating where the input array of strings contain the given substring (case sensitive). |
str_match_bool_ic | Returns a logical array of True/False/Missing indicating where the input array of strings contain the given substring (case insensitive). |
str_match_ic | Returns a list of strings that contain the given substring (case insensitive). |
str_match_ic_regex | Returns a list of strings that contain the given substring (case insensitive), allowing for regular expressions. |
str_match_ind | Returns a list of indexes into an array of strings that contain the given substring (case sensitive). |
str_match_ind_ic | Returns a list of indexes into an array of strings that contain the given substring (case insensitive). |
str_match_ind_ic_regex | Returns a list of indexes into an array of strings that contain the given substring (case insensitive), allowing for regular expressions. |
str_match_ind_regex | Returns a list of indexes into an array of strings that contain the given substring (case sensitive), allowing for regular expressions. |
str_match_regex | Returns a list of strings that contain the given substring (case sensitive), allowing for regular expressions. |
str_right_strip | Strips ending spaces and TABs from the input strings. |
str_split | Splits a string into an array of strings given one or more delimiters. |
str_split_by_length | Splits a string or strings into an array of strings given a length, or an array of lengths. |
str_split_csv | Splits strings into an array of strings using the given delimiter. |
str_squeeze | Strips off leading and ending spaces and TABs, and replaces multiple spaces and/or TABs with a single space. |
str_strip | Strips leading and ending spaces and TABs from the input strings. |
str_sub_str | Replaces a substring with a new substring. |
str_switch | Switches the case of characters in the given string(s). |
str_upper | Converts all input strings to uppercase. |
stringtochar | Coerces values of type string to values of type character. |
stringtocharacter | Coerces values of type string to values of type character. |
stringtodouble | Coerces values of type string to values of type double. |
stringtofloat | Coerces values of type string to values of type float. |
stringtoint | Coerces values of type string to values of type integer. |
stringtointeger | Coerces values of type string to values of type integer. |
stringtolong | Coerces values of type string to values of type long. |
stringtoshort | Coerces values of type string to values of type short. |
strlen | Returns the length of a string variable. |
unique_string | Returns a unique string given the input string as a prefix. |
write_table | Writes formatted elements from a list to an ASCII file. |