enhanced split(),ENVIRON,ARGV in awk to build a numeric string if a string can be converted to a number
This commit is contained in:
@ -718,10 +718,10 @@ public:
|
||||
int setInt (Run* r, long_t v);
|
||||
int setFlt (flt_t v);
|
||||
int setFlt (Run* r, flt_t v);
|
||||
int setStr (const char_t* str, size_t len);
|
||||
int setStr (Run* r, const char_t* str, size_t len);
|
||||
int setStr (const char_t* str);
|
||||
int setStr (Run* r, const char_t* str);
|
||||
int setStr (const char_t* str, size_t len, bool numeric = false);
|
||||
int setStr (Run* r, const char_t* str, size_t len, bool numeric = false);
|
||||
int setStr (const char_t* str, bool numeric = false);
|
||||
int setStr (Run* r, const char_t* str, bool numeric = false);
|
||||
|
||||
int setIndexedVal (
|
||||
const Index& idx,
|
||||
@ -758,25 +758,29 @@ public:
|
||||
int setIndexedStr (
|
||||
const Index& idx,
|
||||
const char_t* str,
|
||||
size_t len
|
||||
size_t len,
|
||||
bool numeric = false
|
||||
);
|
||||
|
||||
int setIndexedStr (
|
||||
Run* r,
|
||||
const Index& idx,
|
||||
const char_t* str,
|
||||
size_t len
|
||||
size_t len,
|
||||
bool numeric = false
|
||||
);
|
||||
|
||||
int setIndexedStr (
|
||||
const Index& idx,
|
||||
const char_t* str
|
||||
const char_t* str,
|
||||
bool numeric = false
|
||||
);
|
||||
|
||||
int setIndexedStr (
|
||||
Run* r,
|
||||
const Index& idx,
|
||||
const char_t* str
|
||||
const char_t* str,
|
||||
bool numeric = false
|
||||
);
|
||||
|
||||
///
|
||||
|
@ -2358,6 +2358,18 @@ QSE_EXPORT qse_awk_val_t* qse_awk_rtx_makestrval2 (
|
||||
qse_size_t len2
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* The qse_awk_rtx_makenstrvalwithstr() function creates a numeric string
|
||||
* value from a null-terminated string. A numeric string is a string value
|
||||
* whose one of the header fields \b nstr is 1.
|
||||
* \return value on success, #QSE_NULL on failure
|
||||
*/
|
||||
QSE_EXPORT qse_awk_val_t* qse_awk_rtx_makenstrvalwithstr (
|
||||
qse_awk_rtx_t* rtx,
|
||||
const qse_char_t* str
|
||||
);
|
||||
|
||||
/**
|
||||
* The qse_awk_rtx_makenstrvalwithcstr() function creates a numeric string
|
||||
* value. A numeric string is a string value whose one of the header fields
|
||||
|
Reference in New Issue
Block a user