CN102902659B - The processing method of numeric character string and terminal in electrical form - Google Patents

The processing method of numeric character string and terminal in electrical form Download PDF

Info

Publication number
CN102902659B
CN102902659B CN201210349261.5A CN201210349261A CN102902659B CN 102902659 B CN102902659 B CN 102902659B CN 201210349261 A CN201210349261 A CN 201210349261A CN 102902659 B CN102902659 B CN 102902659B
Authority
CN
China
Prior art keywords
numeric character
character string
numeric
subelement
cell
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210349261.5A
Other languages
Chinese (zh)
Other versions
CN102902659A (en
Inventor
赵丹凤
陈鹏
陈波
皮霞林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201210349261.5A priority Critical patent/CN102902659B/en
Publication of CN102902659A publication Critical patent/CN102902659A/en
Application granted granted Critical
Publication of CN102902659B publication Critical patent/CN102902659B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses the processing method of numeric character string in a kind of electrical form, inputted after instruction when the numeric character string receiving in any one cell, identify the numeric character string in described cell; In the time that several numeric characters before first positive integer that identifies described numeric character string are zero, by each numeric character in described numeric character string according to receive time the complete demonstration of order. The processing scheme that the embodiment of the present invention provides, can have zero numeric character string before first positive integer of complete demonstration input.

Description

The processing method of numeric character string and terminal in electrical form
Technical field
The present invention relates to electronic technology field, be specifically related to numeric character string in electrical form processing method andTerminal.
Background technology
While inputting the character string of numeric type in electrical form, several characters before character string are all 0Time, complete in the input of whole character string, when knocking enter key and showing whole character string, some words aboveSymbol 0 just disappears, as: input telephone number 0206678777,013412345678, numbering 0001,Student's student number 04001, binary code 01010 etc., complete in character string input, when demonstration, can only showInput telephone number 206678777,13412345678, numbering 1, student's student number 4001, binary code1010; Cause like this that to be input to the information of the character string in electrical form imperfect, can not correctly reflect defeatedThe character string entering.
Summary of the invention
The embodiment of the present invention provides the processing method of numeric character string in a kind of electrical form, can completely showBefore first positive integer of input, there is zero numeric character string. The embodiment of the present invention also provides corresponding dressPut.
The first aspect of the embodiment of the present invention provides the processing method of numeric character string in a kind of electrical form, bagDraw together:
Input after instruction when the numeric character string receiving in any one cell, identified described unitNumeric character string in lattice;
In the time that several numeric characters before first positive integer that identifies described numeric character string are zero, willThe complete demonstration of order when each numeric character is according to reception in described numeric character string.
In conjunction with first aspect, in the possible implementation of the first, described when identifying described numeric characterSeveral numeric characters before first positive integer of string are 1 o'clock, by each numerical value in described numeric character stringCharacter according to receive time the complete demonstration of order, specifically comprise:
In the time identifying front several numeric characters of described numeric character string and be zero, folded on described cellAdd and show text type Option Box;
Receive after text type selection instruction, according to the display mode of text type, by described numeric characterThe complete demonstration of order when each numeric character is according to reception in string.
In conjunction with the possible implementation of first aspect the first, in the possible implementation of the second, described inProcessing method also comprises:
While Overlapping display value type Option Box on described cell;
Receive after value type selection instruction, according to the display mode of value type, remove described numeric wordAll zero in symbol string before first positive integer, and show remaining numeric character in described numeric character string.
In conjunction with the possible implementation of first aspect the first or the possible implementation of the second, the 3rdPlant in possible implementation, described processing method also comprises:
When exceeding after preset time, do not receive selection instruction, aobvious according to the preset type of described cellShow described numeric character string.
Embodiment of the present invention second aspect provides a kind of terminal, comprising:
Receiving element, has inputted instruction for the numeric character string that receives any one cell;
Recognition unit, has inputted after instruction for receive described numeric character string at described receiving element,Identify the numeric character string in described cell;
Display unit, for identifying before first positive integer of described numeric character string when described recognition unitSeveral numeric characters be 1 o'clock, by each numeric character in described numeric character string according to receive time suitableThe complete demonstration of order.
In conjunction with second aspect, in the possible implementation of the first, described display unit comprises:
Overlapping display subelement, front several numeric characters that identify described numeric character string for working as are zeroTime, Overlapping display text type Option Box on described cell;
Receive subelement, for receiving text type selection instruction;
Show subelement, for the display mode according to receiving the text type that receives of subelement, will described inThe complete demonstration of order when each numeric character is according to reception in numeric character string.
In conjunction with the possible implementation of second aspect the first, in the possible implementation of the second,
Described Overlapping display subelement, also for while Overlapping display value type option on described cellFrame;
Described reception subelement, also for receiving value type selection instruction;
Described demonstration subelement, also for the demonstration side of the value type that receives according to described reception subelementFormula, removes in described numeric character string all zero before first positive integer, and shows described numeric character stringIn remaining numeric character.
In conjunction with the possible implementation of second aspect the first or the possible implementation of the second, the 3rdPlant in possible implementation,
Described demonstration subelement, also, for when exceeding after preset time, does not receive selection instruction, according toThe preset type of described cell shows described numeric character string.
Embodiment of the present invention employing is worked as the numeric character string receiving in any one cell and has been inputted fingerAfter order, identify the numeric character string in described cell; When identify described numeric character string first justSeveral numeric characters before integer are 1 o'clock, by each numeric character in described numeric character string according to receptionTime the complete demonstration of order. With in prior art when front several characters of numeric character string of input are zeroTime, can not demonstrate some zero before first positive integer and compare, the processing side that the embodiment of the present invention providesCase, can have zero numeric character string before first positive integer of complete demonstration input.
Brief description of the drawings
Fig. 1 is an embodiment schematic diagram of the processing method of the numeric character string that provides of the embodiment of the present invention;
Fig. 2 is an embodiment schematic diagram of the terminal that provides of the embodiment of the present invention;
Fig. 3 is another embodiment schematic diagram of the terminal that provides of the embodiment of the present invention.
Detailed description of the invention
The embodiment of the present invention provides the processing method of numeric character string in a kind of electrical form, can completely showBefore first positive integer of input, there is zero numeric character string. The embodiment of the present invention also provides corresponding terminal.Below be elaborated respectively.
Consult Fig. 1, in the electrical form that the embodiment of the present invention provides, one of the processing method of numeric character string is realExecuting example comprises:
101, when the numeric character string receiving in any one cell has been inputted after instruction, identification instituteState the numeric character string in cell.
In the cell of electrical form, input numeric character string, each character of input can be presented at successivelyIn cell, after all numeric characters have been inputted, when user knocks enter key, just complete a unitThe input of character string in lattice, from the angle of terminal, when user knocks enter key, terminal receives numerical valueCharacter string has been inputted instruction.
Terminal receives numeric character string and has inputted after instruction, starts to identify every in described numeric character stringIndividual numeric character, concrete can compare each numeric character and 0, when identical with 0, this numerical valueCharacter is 0, and when larger than 0, this numeric character is to be greater than 0 positive integer.
102, when several numeric characters before first positive integer that identifies described numeric character string are zeroTime, by each numeric character in described numeric character string according to receive time the complete demonstration of order.
When several numeric characters before first positive integer that identifies described numeric character string are zero, as:Identifying this numeric character string is 075588234561, terminal can identify this numeric character string first justBefore integer, have 10, by each numeric character in this numeric character string, the order when receiving is complete aobviousShow.
Embodiment of the present invention employing is worked as the numeric character string receiving in any one cell and has been inputted fingerAfter order, identify the numeric character string in described cell; When identify described numeric character string first justSeveral numeric characters before integer are 1 o'clock, by each numeric character in described numeric character string according to receptionTime the complete demonstration of order. With in prior art when front several characters of numeric character string of input are zeroTime, can not demonstrate some zero before first positive integer and compare, the processing side that the embodiment of the present invention providesCase, can have zero numeric character string before first positive integer of complete demonstration input.
Alternatively, on the basis of embodiment corresponding to above-mentioned Fig. 1, described when identifying described numeric characterSeveral numeric characters before first positive integer of string are 1 o'clock, by each numerical value in described numeric character stringCharacter according to receive time the complete demonstration of order, specifically comprise: if when identifying the front of described numeric character stringA dry numeric character is 1 o'clock, Overlapping display text type Option Box on described cell; Receive textAfter type selecting instruction, according to the display mode of text type, by each numeric word in described numeric character stringThe complete demonstration of order while according with according to reception.
For instance, in cell, input numeric character string 075588234561 when, at this input numberThe Option Box of a text type of meeting Overlapping display on the cell of value character string, when user selects this Option BoxTime, terminal will receive the selection instruction of a text type, receives the selection instruction of text typeAfter, terminal is according to the display mode of text type, by each numeric character in described numeric character string according to connecingThe complete demonstration of order in time receiving.
Alternatively, on the basis of optional embodiment corresponding to above-mentioned Fig. 1, also comprise: at described cellUpper while Overlapping display value type Option Box; Receive after value type selection instruction, according to value typeDisplay mode, remove in described numeric character string all zero before first positive integer, and show described numberRemaining numeric character in value character string.
For instance, also can while Overlapping display numerical value class in the Option Box of Overlapping display text typeThe Option Box of type, when the Option Box of user-selected number value type, terminal receives the selection instruction of value typeAfter, will, according to according to the display mode of value type, remove first positive integer in described numeric character stringBefore all zero, and show remaining numeric character in described numeric character string.
When exceeding after preset time, do not receive selection instruction, aobvious according to the preset type of described cellShow described numeric character string.
When the preset type of cell is text type, show described numeric character string according to text type,When the preset type of cell is value type, show described numeric character string according to value type.
The processing method that the multiple embodiment of the present invention provide, can be complete first positive integer of demonstration inputBefore have zero numeric character string.
Consult Fig. 2, an embodiment of the terminal that the embodiment of the present invention provides comprises: receiving element 201, identificationUnit 202 and display unit 203.
Receiving element 201, has inputted instruction for the numeric character string that receives any one cell,
Recognition unit 202, has inputted finger for receiving described numeric character string at described receiving element 201After order, identify the numeric character string in described cell;
Display unit 203, for identify described numeric character string when described recognition unit 202 first justSeveral numeric characters before integer are 1 o'clock, by each numeric character in described numeric character string according to receptionTime the complete demonstration of order.
In the embodiment of the present invention, receiving element 201 receives the numeric character string input in any one cellComplete instruction, recognition unit 202 receives described numeric character string at described receiving element 201 and has inputted fingerAfter order, identify the numeric character string in described cell; Display unit 203 is worked as described recognition unit 202 and is identifiedSeveral numeric characters that go out before first positive integer of described numeric character string are 1 o'clock, by described numeric wordThe complete demonstration of order when each numeric character is according to reception in symbol string. The terminal that the embodiment of the present invention provides,Can before first positive integer of complete demonstration input, there is zero numeric character string.
On the basis of embodiment corresponding to above-mentioned Fig. 2, consult Fig. 3, the terminal that the embodiment of the present invention providesIn another embodiment, described display unit comprises: Overlapping display subelement 2031, reception subelement 2032And demonstration subelement 2033.
Overlapping display subelement 2031, for working as front several numeric characters that identify described numeric character stringBe 1 o'clock, Overlapping display text type Option Box on described cell;
Receive subelement 2032, for receiving text type selection instruction;
Show subelement 2033, for the demonstration side according to receiving the text type that receives of subelement 2032Formula, by each numeric character in described numeric character string according to receive time the complete demonstration of order.
On the basis of embodiment corresponding to above-mentioned Fig. 3,
Described Overlapping display subelement 2031, also for while Overlapping display value type on described cellOption Box;
Described reception subelement 2032, also for receiving value type selection instruction;
Described demonstration subelement 2033, the also value type for receiving according to described reception subelement 2032Display mode, remove in described numeric character string all zero before first positive integer, and show described numberRemaining numeric character in value character string.
On the basis of embodiment corresponding to above-mentioned Fig. 3,
Described demonstration subelement 2033, also, for when exceeding after preset time, does not receive selection instruction,Show described numeric character string according to the preset type of described cell.
The terminal that the multiple embodiment of the present invention provide, can have before first positive integer of complete demonstration inputZero numeric character string.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodimentSuddenly be can carry out the hardware that instruction is relevant by program to complete, this program can be stored in a computer-readableIn storage medium, storage medium can comprise: ROM, RAM, disk or CD etc.
The processing method of numeric character string and end in the electrical form above embodiment of the present invention being providedEnd is described in detail, and has applied specific case herein principle of the present invention and embodiment have been carried outSet forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; Meanwhile,For one of ordinary skill in the art, according to thought of the present invention, in detailed description of the invention and range of applicationOn all will change, in sum, this description should not be construed as limitation of the present invention.

Claims (6)

1. a processing method for numeric character string in electrical form, is characterized in that, comprising:
Input after instruction when the numeric character string receiving in any one cell, identified described unitNumeric character string in lattice;
In the time identifying front several numeric characters of described numeric character string and be zero, folded on described cellAdd and show text type Option Box;
Receive after text type selection instruction, according to the display mode of text type, by described numeric characterThe complete demonstration of order when each numeric character is according to reception in string.
2. processing method according to claim 1, is characterized in that, described processing method also comprises:
While Overlapping display value type Option Box on described cell;
Receive after value type selection instruction, according to the display mode of value type, remove described numeric wordAll zero in symbol string before first positive integer, and show remaining numeric character in described numeric character string.
3. processing method according to claim 1 and 2, is characterized in that, described processing method is also wrappedDraw together:
When exceeding after preset time, do not receive selection instruction, aobvious according to the preset type of described cellShow described numeric character string.
4. a treating apparatus for numeric character string in electrical form, is characterized in that, comprising:
Receiving element, has inputted instruction for the numeric character string that receives any one cell;
Recognition unit, has inputted after instruction for receive described numeric character string at described receiving element,Identify the numeric character string in described cell;
Overlapping display subelement, for when described recognition unit identify described numeric character string front severalNumeric character is 1 o'clock, Overlapping display text type Option Box on described cell;
Receive subelement, for receiving text type selection instruction;
Show subelement, for the display mode according to receiving the text type that receives of subelement, will described inThe complete demonstration of order when each numeric character is according to reception in numeric character string.
5. treating apparatus according to claim 4, is characterized in that,
Described Overlapping display subelement, also for while Overlapping display value type option on described cellFrame;
Described reception subelement, also for receiving value type selection instruction;
Described demonstration subelement, also for the demonstration side of the value type that receives according to described reception subelementFormula, removes in described numeric character string all zero before first positive integer, and shows described numeric character stringIn remaining numeric character.
6. according to the treating apparatus described in claim 4 or 5, it is characterized in that,
Described demonstration subelement, also, for when exceeding after preset time, does not receive selection instruction, according toThe preset type of described cell shows described numeric character string.
CN201210349261.5A 2012-09-18 2012-09-18 The processing method of numeric character string and terminal in electrical form Active CN102902659B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210349261.5A CN102902659B (en) 2012-09-18 2012-09-18 The processing method of numeric character string and terminal in electrical form

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210349261.5A CN102902659B (en) 2012-09-18 2012-09-18 The processing method of numeric character string and terminal in electrical form

Publications (2)

Publication Number Publication Date
CN102902659A CN102902659A (en) 2013-01-30
CN102902659B true CN102902659B (en) 2016-05-25

Family

ID=47574899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210349261.5A Active CN102902659B (en) 2012-09-18 2012-09-18 The processing method of numeric character string and terminal in electrical form

Country Status (1)

Country Link
CN (1) CN102902659B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461054B (en) * 2014-12-16 2017-11-24 飞天诚信科技股份有限公司 A kind of input unit and method of restricted character string length
CN113988007A (en) * 2021-12-29 2022-01-28 苏州浪潮智能科技有限公司 Text display method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192107A (en) * 2006-11-28 2008-06-04 国际商业机器公司 Method and apparatus for inputting

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100535891C (en) * 2006-12-07 2009-09-02 珠海金山软件股份有限公司 Device and mode for commuting value into expression mode correlative to language
CN101206642A (en) * 2006-12-22 2008-06-25 珠海金山软件股份有限公司 Apparatus and method for being convenient user to judge digital meanings
CN102243624A (en) * 2010-11-02 2011-11-16 泗阳天琴软件科技有限公司 Several new functions of spreadsheet

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192107A (en) * 2006-11-28 2008-06-04 国际商业机器公司 Method and apparatus for inputting

Also Published As

Publication number Publication date
CN102902659A (en) 2013-01-30

Similar Documents

Publication Publication Date Title
CN107341014A (en) Electronic equipment, the generation method of technical documentation and device
CN104579360B (en) A kind of method and apparatus of data processing
CN110516233B (en) Data processing method, device, terminal equipment and storage medium
CN104423623B (en) It is a kind of to select word treatment method and electronic equipment
CN104915112A (en) Terminal unlocking method and terminal
CN111767565B (en) Data desensitization processing method, processing device and storage medium
CN107516534A (en) A kind of comparison method of voice messaging, device and terminal device
CN203366560U (en) Intelligentized electronic leaning device
CN104252531A (en) File type identification method and device
CN110942763A (en) Voice recognition method and device
CN102902659B (en) The processing method of numeric character string and terminal in electrical form
CN103714724A (en) Information processing method and electronic device
CN105373527B (en) Omission recovery method and question-answering system
CN108510327A (en) Discount coupon generation method and system
CN104699745B (en) Instantaneous speech power and speech output method
CN104182115A (en) Method and device for carrying out page turning setting in reading application and terminal
CN106933798A (en) The method and device of information analysis
CN108090045B (en) Word segmentation method and device and readable storage medium
CN104598464B (en) A kind of information processing method and electronic equipment
CN102855228B (en) The disposal route of numeric character string and treating apparatus in cell
JPWO2013137311A1 (en) Character input device and character input method
US10565366B2 (en) Numerical verification code generation method and device
CN114116699A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN102768577B (en) A kind of user adds the method for custom words
CN103390055A (en) File transmission method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP01 Change in the name or title of a patent holder

Address after: Jinshan software building No. 8 Jingshan Hill Road, Lane 519015 Lianshan Jida Zhuhai city in Guangdong Province

Patentee after: Zhuhai Kingsoft Office Software Co., Ltd.

Patentee after: Beijing Kingsoft office software Limited by Share Ltd

Address before: Jinshan software building No. 8 Jingshan Hill Road, Lane 519015 Lianshan Jida Zhuhai city in Guangdong Province

Patentee before: Zhuhai Kingsoft Office Software Co., Ltd.

Patentee before: Beijing Kingsoft WPS Office Co., Ltd.