MCPcopy Create free account
hub / github.com/apache/arrow / ascii_utf8

Function ascii_utf8

cpp/src/gandiva/precompiled/string_ops.cc:1412–1418  ·  view source on GitHub ↗

Returns the numeric value of the first character of str.

Source from the content-addressed store, hash-verified

1410
1411// Returns the numeric value of the first character of str.
1412GANDIVA_EXPORT
1413gdv_int32 ascii_utf8(const char* data, gdv_int32 data_len) {
1414 if (data_len == 0) {
1415 return 0;
1416 }
1417 return static_cast<gdv_int32>(static_cast<signed char>(data[0]));
1418}
1419
1420// Returns the UTF-8 encoding of the Unicode code point A.
1421// Raises an error if A is not a valid code point, i.e. it is negative, greater

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68