代码搜索:formatting
找到约 1,526 项符合「formatting」的源代码
代码结果 1,526
www.eeworm.com/read/127767/14336532
txt e324. formatting a message containing a number.txt
Object[] params = new Object[]{new Integer(123), new Integer(1234)};
String msg = MessageFormat.format("There are {0} a''s and {1} b''s", params);
// There are 123 a's and 1,234 b's
www.eeworm.com/read/127767/14336640
txt e319. formatting and parsing a time for a locale.txt
To format and parse in a particular locale, specify the locale when creating the SimpleDateFormat object.
Locale locale = Locale.FRENCH;
// Format with a custom format
DateFormat
www.eeworm.com/read/127767/14336713
txt e312. formatting and parsing a number for a locale.txt
A formatted number consists of locale-specific symbols such as the decimal point. For example, a Canadian decimal point is a dot while a German decimal point is a comma. This example demonstrates how
www.eeworm.com/read/127767/14336928
txt e323. formatting and parsing a date for a locale.txt
To format and parse in a particular locale, specify the locale when creating the SimpleDateFormat object.
Locale locale = Locale.FRENCH;
// Format with a custom format
DateFormat
www.eeworm.com/read/127767/14337340
txt e326. formatting a message containing a date.txt
Object[] params = new Object[]{new Date(), new Date(0)};
String msg = MessageFormat.format("Today is {0} and UTC of 0 is {1}", params);
// Today is 2/27/02 2:00 PM and UTC of 0 is 12/31/69 4
www.eeworm.com/read/127767/14337366
txt e325. formatting a message containing a time.txt
Object[] params = new Object[]{new Date(), new Date(0)};
String msg = MessageFormat.format("The time is {0} and UTC of 0 is {1}", params);
// The time is 2/27/02 2:08 PM and UTC of 0 is 12/3
www.eeworm.com/read/127767/14337713
txt e313. formatting a number in exponential notation.txt
The `E' symbol specifies that a number should be formatted in exponential notation. The symbol also separates the mantissa from the exponent. The symbol must be followed by one or more `0' symbols. Th
www.eeworm.com/read/189196/8485178
txt 在文档类中,取得视图类指针,在取得框架类指针.txt
Pointer to the CRichEditView object associated with the document
//A “rich edit control” is a window in which the user can enter and edit text.
The text can be assigned character and paragraph form
www.eeworm.com/read/464279/7166995
sh ex-13-03_printf.sh
#!/bin/sh
# Chapter 13 - Using printf
# This example demonstrates the use of the formatting directives in
# the printf command
printf "%-32s %s\n" "File Name" "File Type"
for i in *;
do
printf