ClosedRange_getCharacterExpression関数をsprintfで実装