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

37
LINES

< > BotCompany Repo | #1016312 // isVideoFileName

JavaX fragment (include)

1  
static Set<S> isVideoFileName_extensions = litciset("3g2",
2  
  "3gp",
3  
  "aaf",
4  
  "asf",
5  
  "avchd",
6  
  "avi",
7  
  "drc",
8  
  "flv",
9  
  "m2v",
10  
  "m4p",
11  
  "m4v",
12  
  "mkv",
13  
  "mng",
14  
  "mov",
15  
  "mp2",
16  
  "mp4",
17  
  "mpe",
18  
  "mpeg",
19  
  "mpg",
20  
  "mpv",
21  
  "mxf",
22  
  "nsv",
23  
  "ogg",
24  
  "ogv",
25  
  "qt",
26  
  "rm",
27  
  "rmvb",
28  
  "roq",
29  
  "svi",
30  
  "vob",
31  
  "webm",
32  
  "wmv",
33  
  "yuv");
34  
35  
static bool isVideoFileName(S s) {
36  
  ret containsNotNull(isVideoFileName_extensions, fileExtensionWithoutDot(s));
37  
}

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: 302 / 327
Version history: 4 change(s)
Referenced in: [show references]