Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

37
LINES

< > BotCompany Repo | #1016312 // isVideoFileName

JavaX fragment (include)

static Set<S> isVideoFileName_extensions = litciset("3g2",
  "3gp",
  "aaf",
  "asf",
  "avchd",
  "avi",
  "drc",
  "flv",
  "m2v",
  "m4p",
  "m4v",
  "mkv",
  "mng",
  "mov",
  "mp2",
  "mp4",
  "mpe",
  "mpeg",
  "mpg",
  "mpv",
  "mxf",
  "nsv",
  "ogg",
  "ogv",
  "qt",
  "rm",
  "rmvb",
  "roq",
  "svi",
  "vob",
  "webm",
  "wmv",
  "yuv");

static bool isVideoFileName(S s) {
  ret containsNotNull(isVideoFileName_extensions, fileExtensionWithoutDot(s));
}

Author comment

Began life as a copy of #1015410

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016312
Snippet name: isVideoFileName
Eternal ID of this version: #1016312/5
Text MD5: f6c03f6ad72788f4827e529ebff2f9d9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-14 11:24:09
Source code size: 503 bytes / 37 lines
Pitched / IR pitched: No / No
Views / Downloads: 300 / 325
Version history: 4 change(s)
Referenced in: [show references]