plastimatch
|
#include "plmsys_config.h"
#include <algorithm>
#include <ctype.h>
#include <fstream>
#include <iostream>
#include <sstream>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <iterator>
#include "plm_va_copy.h"
#include "string_util.h"
Functions | |
bool | string_starts_with (const std::string &s1, const char *s2) |
bool | string_starts_with (const char *s1, const char *s2) |
int | plm_strcmp (const char *s1, const char *s2) |
std::string | make_lowercase (const std::string &s) |
std::string | make_uppercase (const std::string &s) |
static int | regularize_string_callback (int c) |
std::string | regularize_string (const std::string &s) |
void | string_util_rtrim_whitespace (char *s) |
Plm_return_code | parse_int13 (int *arr, const char *string) |
Plm_return_code | parse_int13 (int *arr, const std::string &string) |
Plm_return_code | parse_float13 (float *arr, const char *string) |
Plm_return_code | parse_float13 (float *arr, const std::string &string) |
Plm_return_code | parse_dicom_float2 (float *arr, const char *string) |
Plm_return_code | parse_dicom_float3 (float *arr, const char *string) |
Plm_return_code | parse_dicom_float6 (float *arr, const char *string) |
std::vector< float > | parse_dicom_float_vec (const char *string) |
std::vector< int > | parse_int3_string (const char *s) |
std::vector< float > | parse_float3_string (const char *s) |
std::vector< float > | parse_float3_string (const std::string &s) |
std::vector< float > | parse_float_string (const char *s) |
std::vector< float > | parse_float_string (const std::string &s) |
const std::string | string_trim (const std::string &str, const std::string &whitespace) |
std::string | slurp_file (const char *fn) |
std::string | slurp_file (const std::string &fn) |
std::string | string_format_va (const char *fmt, va_list ap) |
std::string | string_format (const char *fmt,...) |
size_t | ci_find (const std::string &str1, const std::string &str2) |
bool | string_value_true (const char *s) |
bool | string_value_true (const std::string &s) |
bool | string_value_false (const char *s) |
bool | string_value_false (const std::string &s) |
template<typename T > | |
std::string | PLM_to_string (T value) |
template<typename T > | |
std::string | PLM_to_string (T *value, int n) |
std::vector< std::string > & | string_split (const std::string &s, char delim, std::vector< std::string > &elems) |
std::vector< std::string > | string_split (const std::string &s, char delim) |
bool | split_key_val (const std::string &s, std::string &key, std::string &val, char delim) |
bool | split_array_index (const std::string &s, std::string &array, std::string &index) |
template std::string | PLM_to_string (int value) |
template std::string | PLM_to_string (size_t value) |
template std::string | PLM_to_string (float value) |
template std::string | PLM_to_string (double value) |
template std::string | PLM_to_string (int *value, int n) |
template std::string | PLM_to_string (double *value, int n) |
size_t ci_find | ( | const std::string & | str1, |
const std::string & | str2 ) |
std::string make_lowercase | ( | const std::string & | s | ) |
std::string make_uppercase | ( | const std::string & | s | ) |
Plm_return_code parse_dicom_float2 | ( | float * | arr, |
const char * | string ) |
Plm_return_code parse_dicom_float3 | ( | float * | arr, |
const char * | string ) |
Plm_return_code parse_dicom_float6 | ( | float * | arr, |
const char * | string ) |
std::vector< float > parse_dicom_float_vec | ( | const char * | string | ) |
Plm_return_code parse_float13 | ( | float * | arr, |
const char * | string ) |
Plm_return_code parse_float13 | ( | float * | arr, |
const std::string & | string ) |
std::vector< float > parse_float3_string | ( | const char * | s | ) |
std::vector< float > parse_float3_string | ( | const std::string & | s | ) |
std::vector< float > parse_float_string | ( | const char * | s | ) |
std::vector< float > parse_float_string | ( | const std::string & | s | ) |
Plm_return_code parse_int13 | ( | int * | arr, |
const char * | string ) |
Plm_return_code parse_int13 | ( | int * | arr, |
const std::string & | string ) |
std::vector< int > parse_int3_string | ( | const char * | s | ) |
int plm_strcmp | ( | const char * | s1, |
const char * | s2 ) |
template std::string PLM_to_string | ( | double * | value, |
int | n ) |
template std::string PLM_to_string | ( | double | value | ) |
template std::string PLM_to_string | ( | float | value | ) |
template std::string PLM_to_string | ( | int * | value, |
int | n ) |
template std::string PLM_to_string | ( | int | value | ) |
template std::string PLM_to_string | ( | size_t | value | ) |
std::string PLM_to_string | ( | T * | value, |
int | n ) |
std::string PLM_to_string | ( | T | value | ) |
std::string regularize_string | ( | const std::string & | s | ) |
|
static |
std::string slurp_file | ( | const char * | fn | ) |
std::string slurp_file | ( | const std::string & | fn | ) |
bool split_array_index | ( | const std::string & | s, |
std::string & | array, | ||
std::string & | index ) |
bool split_key_val | ( | const std::string & | s, |
std::string & | key, | ||
std::string & | val, | ||
char | delim ) |
std::string string_format | ( | const char * | fmt, |
... ) |
std::string string_format_va | ( | const char * | fmt, |
va_list | ap ) |
std::vector< std::string > string_split | ( | const std::string & | s, |
char | delim ) |
std::vector< std::string > & string_split | ( | const std::string & | s, |
char | delim, | ||
std::vector< std::string > & | elems ) |
bool string_starts_with | ( | const char * | s1, |
const char * | s2 ) |
bool string_starts_with | ( | const std::string & | s1, |
const char * | s2 ) |
const std::string string_trim | ( | const std::string & | str, |
const std::string & | whitespace ) |
void string_util_rtrim_whitespace | ( | char * | s | ) |
bool string_value_false | ( | const char * | s | ) |
bool string_value_false | ( | const std::string & | s | ) |
bool string_value_true | ( | const char * | s | ) |
bool string_value_true | ( | const std::string & | s | ) |