You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 rivejä
984 B

4 vuotta sitten
  1. %% pretty 模式下 每行打印的字符数
  2. -define(LineCCnt, 120).
  3. -define(eFmtPtMc, '$eFmtPtMc').
  4. -define(base(Precision), case Precision of none -> 10; _ -> Precision end).
  5. %% 三元表达式
  6. -define(IIF(Cond, Ret1, Ret2), (case Cond of true -> Ret1; _ -> Ret2 end)).
  7. -record(fmtSpec, {
  8. ctlChar :: char() %% 控制序列的类型 $p $w
  9. , args :: [any()] %% 是控制序列使用的参数的列表,如果控制序列不带任何参数,则为空列表。
  10. , width :: 'none' | integer() %% 字段宽度
  11. , adjust :: 'left' | 'right' %% 对齐方式
  12. , precision :: 'none' | integer() %% 打印参数的精度
  13. , padChar :: char() %% 填充字符
  14. , encoding :: 'unicode' | 'latin1' %% 如果存在翻译修饰符t,则编码设置为true
  15. , strings :: boolean() %% 如果存在修饰符l,则将 string设置为false。
  16. }).