ffmpeg.nim icon indicating copy to clipboard operation
ffmpeg.nim copied to clipboard

libavutil/avstring.nim is not wrapped yet

Open momeemt opened this issue 4 years ago • 0 comments

Overview

proc av_strnlen* (s: cstring, len: csize_t): csize_t {.inline.} =
  var i: csize_t = 0
  # while i < len and s[i]:
  #   i += 1
  result = i

proc av_isdigit* (c: cint): cint {.inline.} =
  # result = c >= '0' and c <= '9'
  discard

proc av_isgraph* (c: cint): cint {.inline.} =
  result = if c > 32 and c < 127: 1 else: 0

proc av_isspace* (c: cint): cint {.inline.} =
  # result = c == ' ' || c == '\f' || c == '\n' || c == '\r' || c == '\t' || c == '\v'
  discard

proc av_toupper* (c: cint): cint {.inline.} =
  # if (c >= 'a' && c <= 'z')
  #       c ^= 0x20;
  # return c;
  discard

proc av_tolower* (c: cint): cint {.inline.} =
  # if (c >= 'A' && c <= 'Z')
  #       c ^= 0x20;
  # return c;
  discard

proc av_isxdigit* (c: cint): cint {.inline.} =
  # c = av_tolower(c);
  # return av_isdigit(c) || (c >= 'a' && c <= 'f');
  discard

momeemt avatar Mar 02 '22 06:03 momeemt