Changeset 20420 for lang/haskell/nario/tool/listup-imgs.hs
- Timestamp:
- 10/02/08 01:25:33 (3 months ago)
- Files:
-
- 1 modified
-
lang/haskell/nario/tool/listup-imgs.hs (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/haskell/nario/tool/listup-imgs.hs
r20397 r20420 1 -- 画像ファイルを列挙して、ソースを生成 1 2 2 3 import System (getArgs) … … 7 8 import Data.List (intercalate) 8 9 9 -- �摜�t�@�C���̗�listupImgFiles path = fileEntries path >>= return . filter bmpFile 10 -- 画像ファイルの列挙 11 listupImgFiles path = fileEntries path >>= return . filter bmpFile 10 12 where 11 13 bmpFile = isJust . regex "\\.bmp$" 12 14 13 regex :: String -> String -> Maybe [String] 14 regex rex str = matchRegex (mkRegex rex) str 15 15 -- 全置換 16 16 gsub rexstr f str = loop str 17 17 where … … 22 22 rex = mkRegex rexstr 23 23 24 -- 拡張子を除いたファイル名 24 25 basefn fn = 25 26 case regex "^(.*)\\..*$" $ basename fn of … … 27 28 Nothing -> fn 28 29 29 -- �擪�������camelize (x:xs) = toUpper x : xs 30 -- 先頭を大文字に 31 camelize (x:xs) = toUpper x : xs 30 32 31 33 -- エントリ 32 34 main = do 33 35 args <- getArgs
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)