a while

Author Message

jb bianchi

Friday 19 August 2005 8:09:56 am

hi,

I want to read a string but char by char in order to count the char but I want to set condition:
if I read a char like ">" , I stop the reading and I return the counter.

I think I have to use a while but I miss something. In fact I don(t know how I can read char by char of a string.

thank's

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 20 2025 12:45:02
Script start
Timing: Jan 20 2025 12:45:02
Module start 'layout'
Timing: Jan 20 2025 12:45:02
Module start 'content'
Timing: Jan 20 2025 12:45:04
Module end 'content'
Timing: Jan 20 2025 12:45:04
Script end

Main resources:

Total runtime1.1482 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.0234152.6094
Module start 'layout' 0.00600.0031 741.632839.3906
Module start 'content' 0.00911.1379 781.0234398.2422
Module end 'content' 1.14700.0012 1,179.26568.2109
Script end 1.1482  1,187.4766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3087160.0002
Check MTime0.00140.1257160.0001
Mysql Total
Database connection0.00100.087210.0010
Mysqli_queries1.112196.8514460.0242
Looping result0.00040.0337440.0000
Template Total1.117197.320.5586
Template load0.00270.237720.0014
Template processing1.114497.051020.5572
Template load and register function0.00020.014910.0002
states
state_id_array0.00110.095510.0011
state_identifier_array0.00110.095020.0005
Override
Cache load0.00180.160080.0002
Sytem overhead
Fetch class attribute can translate value0.00070.058010.0007
Fetch class attribute name0.00050.045810.0005
XML
Image XML parsing0.00010.008910.0001
class_abstraction
Instantiating content class attribute0.00000.000410.0000
General
dbfile0.00210.1850100.0002
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs