|
|
@ -1,7 +1,6 @@ |
|
|
|
-module(eFmt). |
|
|
|
|
|
|
|
-import(binary, [split/2, part/3]). |
|
|
|
-import(lists, [reverse/2, keyfind/3]). |
|
|
|
|
|
|
|
-compile(inline). |
|
|
|
-compile({inline_size, 128}). |
|
|
@ -629,7 +628,7 @@ buildSmall([], CharsLimit, P, S, W, Other, Acc) -> |
|
|
|
[One, Two, Three] -> |
|
|
|
[Three, Two, One]; |
|
|
|
Ret -> |
|
|
|
reverse(Ret, []) |
|
|
|
lists:reverse(Ret, []) |
|
|
|
end |
|
|
|
end; |
|
|
|
buildSmall([OneCA | Cs], CharsLimit, P, S, W, Other, Acc) -> |
|
|
@ -998,7 +997,7 @@ charsLen(S) -> |
|
|
|
end. |
|
|
|
|
|
|
|
getOpt(Key, TupleList, Default) -> |
|
|
|
case keyfind(Key, 1, TupleList) of |
|
|
|
case lists:keyfind(Key, 1, TupleList) of |
|
|
|
false -> |
|
|
|
Default; |
|
|
|
ValueTuple -> |
|
|
|