Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions hybridse/src/udf/default_udf_library.cc
Original file line number Diff line number Diff line change
Expand Up @@ -874,9 +874,9 @@ void DefaultUdfLibrary::InitStringUdf() {
@endcode

@param str
@param pos define the begining of the substring.
@param pos define the beginning of the substring.

- If `pos` is positive, the begining of the substring is `pos` charactors from the start of string.
- If `pos` is positive, the beginning of the substring is `pos` characters from the start of string.
- If `pos` is negative, the beginning of the substring is `pos` characters from the end of the string, rather than the beginning.

@since 0.1.0)");
Expand All @@ -900,9 +900,9 @@ void DefaultUdfLibrary::InitStringUdf() {
@endcode

@param str
@param pos: define the begining of the substring.
@param pos: define the beginning of the substring.

- If `pos` is positive, the begining of the substring is `pos` charactors from the start of string.
- If `pos` is positive, the beginning of the substring is `pos` characters from the start of string.
- If `pos` is negative, the beginning of the substring is `pos` characters from the end of the string, rather than the beginning.

@param len length of substring. If len is less than 1, the result is the empty string.
Expand Down Expand Up @@ -947,8 +947,8 @@ void DefaultUdfLibrary::InitStringUdf() {

@param substr
@param str
@param pos: define the begining search position of the str.
- Negetive value is illegal and will return 0 directly;
@param pos: define the beginning search position of the str.
- Negative value is illegal and will return 0 directly;
- If substr is "" and pos less equal len(str) + 1, return pos, other case return 0;
)");

Expand Down
2 changes: 1 addition & 1 deletion hybridse/src/udf/udf.h
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ void bool_to_string(bool v, StringRef *output);

// transform string into integral
// base is default to 10, 16 if string starts with '0x' or '0X', other base is not considered.
// for hex string, it's parsed unsigned, add minus('-') to the very begining for negative hex
// for hex string, it's parsed unsigned, add minus('-') to the very beginning for negative hex
// returns (status, int64)
struct StrToIntegral {
std::pair<absl::Status, int64_t> operator()(absl::string_view in) {
Expand Down
Loading