icd: add common format functions
3 files changed