webkit 소스를 포팅 중 생소한 내용 발견..
[code]
String fileName;
do {
++seq;
fileName = pathByAppendingComponent(dbDir, String::format("%016"PRIx64".db", seq));
} while (fileExists(fileName));
return String::format("%016"PRIx64".db", seq);
[/code]
PRIx64 는 다음과 같이 define 되어 있었다.
[code]
#define PRIx64 "llx"
[/code]
I64x 가 무엇인지 찾아보니 64bit integer를 헥사로 출력하기 위한 것 이라고...
근데 format 에 + 따위는 없는 것이냐??
[code]
String fileName;
do {
++seq;
fileName = pathByAppendingComponent(dbDir, String::format("%016"PRIx64".db", seq));
} while (fileExists(fileName));
return String::format("%016"PRIx64".db", seq);
[/code]
PRIx64 는 다음과 같이 define 되어 있었다.
[code]
#define PRIx64 "llx"
[/code]
I64x 가 무엇인지 찾아보니 64bit integer를 헥사로 출력하기 위한 것 이라고...
근데 format 에 + 따위는 없는 것이냐??
'Native > C++' 카테고리의 다른 글
push framework (0) | 2013.10.02 |
---|---|
a fast compressor / decompressor snappy (0) | 2013.10.02 |
namespace (0) | 2013.10.02 |
base36 encode/decode (0) | 2013.10.02 |
Very very useful: eBooks compiled from top StackOverflow topics/answers (0) | 2013.10.02 |