Chinese Pinyin program for iOS platform

Source: Internet
Author: User

Ios/mac OS X kanji to pinyin network Popular Chinese pinyin program is a phonetic code table with a fast speed. In fact, the core Foundation also provides a solution, but also with a tone!

Java code
  1. nsmutablestring *ms = [[Nsmutablestring alloc] initwithstring:@"I am Chinese"];
  2. if (Cfstringtransform (__bridge cfmutablestringref) MS, 0, Kcfstringtransformmandarinlatin, NO)) {
  3. NSLog (@"pingying:%@", MS); //Wǒshìzhōng Guórén
  4. }
  5. if (Cfstringtransform (__bridge cfmutablestringref) MS, 0, Kcfstringtransformstripdiacritics, NO)) {
  6. NSLog (@"pingying:%@", MS); //Wo shi Zhong guo ren
  7. }
        nsmutablestring *ms = [[Nsmutablestring alloc] initwithstring:@ "I am Chinese"];        if (Cfstringtransform (__bridge cfmutablestringref) MS, 0, Kcfstringtransformmandarinlatin, NO)) {            NSLog (@) Pingying:%@ ", MS); Wǒshìzhōng Guórén        }        if (Cfstringtransform (__bridge cfmutablestringref) MS, 0, Kcfstringtransformstripdiacritics, NO)) {            NSLog (@ "pingying:%@", MS);//wo shi zhong guo ren        }

CREATE INDEX sql-statement:: = Create [UNIQUE] INDEX [IF not EXISTS] [database-name.] Index-name on Table-name (column- name [, column-name]*) Column-name:: = name [COLLATE collation-name] [ASC | DESC] The CREATE INDEX command consists of the "CREATE INDEX" keyword followed by the name of the new index, the keyword "on", the name of the table to be indexed, and the list of fields in parentheses for the index key. Each field name can follow the "ASC" or "DESC" keyword to describe the collation, but the collation is ignored in the current version. Sorting always follows ascending order.
Each field name is followed by a COLLATE clause that defines the order in which the text records are compared. The default comparison order is the order of comparison described by the CREATE TABLE statement. If you do not define a comparison order, the built-in binary comparison order is used.
There is no limit to the number of indexes attached to a single table, and there is no limit on the number of fields in the index.
If the unique keyword appears between create and index, index records with duplicate names are not allowed. Attempting to insert a record with duplicate names will result in an error.
The text of each CREATE INDEX statement is stored in the Sqlite_master or Sqlite_temp_master table, depending on whether the table being indexed is a temporary table. Every time the database is opened, all the CREATE INDEX statements are read from the Sqlite_master table, resulting in the internal structure of the indexed style of SQLite.
If an optional if NOT EXISTS clause is used and an index with the same name exists, the command is invalid.
Use the DROP Index command to delete the index.

Chinese Pinyin program for iOS platform

Related Article

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.