浏览代码

ft:代码优化

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

+ 3
- 2
src/eFmt.erl 查看文件

@ -242,9 +242,10 @@ fScan(Format, Args) ->
doCollect(FmtBinStr, Args, Acc) ->
case binary:split(FmtBinStr, <<"~">>) of
[NotMatch] ->
[NotMatch | Acc];
true = [] == Args,
?IIF(NotMatch == <<>>, Acc, [NotMatch | Acc]);
[FPart, LPart] ->
doCollWidth(LPart, Args, 0, right, [FPart | Acc])
doCollWidth(LPart, Args, 0, right, ?IIF(FPart == <<>>, Acc, [FPart | Acc]))
end.
doCollWidth(<<>>, _Args, _Width, _Adjust, Acc) ->

正在加载...
取消
保存