浏览代码

ft: rumCrashLog.erl修改

master
SisMaker 4 年前
父节点
当前提交
8960597b7d
共有 1 个文件被更改,包括 19 次插入0 次删除
  1. +19
    -0
      src/eFmt.erl

+ 19
- 0
src/eFmt.erl 查看文件

@ -10,6 +10,9 @@
format/2 format/2
, format/3 , format/3
, formatBin/2
, formatBin/3
, scan/2 , scan/2
, build/1 , build/1
, build/2 , build/2
@ -60,6 +63,22 @@ format(Format, Args, Options) ->
erlang:error(badarg, [Format, Args]) erlang:error(badarg, [Format, Args])
end. end.
-spec formatBin(Format :: io:format(), Data :: [term()]) -> chars().
formatBin(Format, Args) ->
try iolist_to_binary(fWrite(Format, Args))
catch
_C:_R:S ->
erlang:error(badarg, [Format, Args, _C, _R, S])
end.
-spec formatBin(Format :: io:format(), Data :: [term()], Options :: [{charsLimit, CharsLimit :: charsLimit()}]) -> chars().
formatBin(Format, Args, Options) ->
try iolist_to_binary(fWrite(Format, Args, Options))
catch
_C:_R ->
erlang:error(badarg, [Format, Args])
end.
-spec scan(Format :: io:format(), Data :: [term()]) -> FormatList :: [char() | fmtSpec()]. -spec scan(Format :: io:format(), Data :: [term()]) -> FormatList :: [char() | fmtSpec()].
scan(Format, Args) -> scan(Format, Args) ->
try fScan(Format, Args) try fScan(Format, Args)

正在加载...
取消
保存