Common nslog formats

Source: Internet
Author: User

In practice programming, when a character string at the specified position of the characteratindex index is encountered (returns the Unicode char type). If it is a Chinese character, it is customary to use % C, % S. It can only display Unicode numbers, the Chinese characters cannot be correctly displayed. % C, (c Capital) is required for the result ). special record for long memory.

// The nslog format is as follows. Of course, the format of [nsstring stringwithformat:] is the same.

//

% @ Object
% D, % I integer
% U unsigned integer
% F floating point/double-Character
% X, % x binary integer
% O octal integer

% Zu size_t
% P pointer
% E floating point/double-character (Scientific Computing)
% G floating point/double-Character
% S c string
%. * S Pascal string
% C characters
% C unichar
% LLD 64-bit long integer (long)
% LlU unsigned 64-bit long integer
% Lf 64-bit dual-Character

//

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.