Home
last modified time | relevance | path

Searched refs:truncate_at (Results 1 – 5 of 5) sorted by relevance

/external/libtextclassifier/native/utils/strings/
Dutf8.cc54 int SafeTruncateLength(const char *str, int truncate_at) { in SafeTruncateLength() argument
57 while (IsTrailByte(str[truncate_at]) && (truncate_at > 0)) { in SafeTruncateLength()
58 truncate_at--; in SafeTruncateLength()
60 return truncate_at; in SafeTruncateLength()
Dutf8.h53 int SafeTruncateLength(const char *str, int truncate_at);
/external/grpc-grpc/src/ruby/pb/test/
Dserver.rb66 def truncate(s, truncate_at, options = {}) argument
67 return s unless s.length > truncate_at
69 with_extra_room = truncate_at - omission.length
/external/avb/
Davbtool.py1061 truncate_at = (chunk.chunk_offset +
1065 truncate_at = (chunk.chunk_offset +
1070 truncate_at = chunk.chunk_offset + struct.calcsize(ImageChunk.FORMAT)
1083 truncate_at = chunk.chunk_offset
1091 self._image.truncate(truncate_at)
Davbtool1061 truncate_at = (chunk.chunk_offset +
1065 truncate_at = (chunk.chunk_offset +
1070 truncate_at = chunk.chunk_offset + struct.calcsize(ImageChunk.FORMAT)
1083 truncate_at = chunk.chunk_offset
1091 self._image.truncate(truncate_at)