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

Function ascii_utf8

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

Returns the numeric value of the first character of str.

Source from the content-addressed store, hash-verified

1380
1381// Returns the numeric value of the first character of str.
1382GANDIVA_EXPORT
1383gdv_int32 ascii_utf8(const char* data, gdv_int32 data_len) {
1384 if (data_len == 0) {
1385 return 0;
1386 }
1387 return static_cast<gdv_int32>(static_cast<signed char>(data[0]));
1388}
1389
1390// Returns the ASCII character having the binary equivalent to A.
1391// If A is larger than 256 the result is equivalent to chr(A % 256).

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68