Mb string replacements

From MapbenderWiki

Jump to: navigation, search

Contents

Wednesday July 25th

add mb_string functionality

skipped external libraries during refactoring

/classes/class.pdf.php
/classes/class_ezpdf.php
/extensions/JSON.php
/classes/phpmailer-1.7.2/test/phpmailer_test.php
/classes/phpmailer-1.7.2/class.phpmailer.php
/classes/phpmailer-1.7.2/class.smtp.php


strstr

mb_strstr available since PHP 5.2.0, we use a combination of mb_strpos and mb_substr (pure strstr) or simply mb_strpos instead

/tools/mapFiler.php
/php/mod_editWMS_Metadata.php
/php/mod_monitorCapabilties_main.php

stristr

mb_stristr available since PHP 5.2.0, we use mb_strpos and mb_strtoupper to test occurence only

/extensions/geom2wfst.php

str_replace

no mb equivalent, we use preg_replace

/owsproxy/http/index.php
/tools/mapFiler.php
/print/mod_printPDF_php.php
/php/mod_changeEPSG_dynamic.php
/php/mod_changeEPSG.php
/php/mod_editGuiWms.php
/php/mod_editWmsMetadata.php
/php/mod_exportElement.php
/php/mod_exportGui.php
/php/mod_getStyles.php
/php/mod_layerMetadata.php
/php/mod_logout.php
/php/mod_wfs_result.php
/php/mod_wfs.php
/javascripts/mod_insertKmlIntoDb.php
/javascripts/mod_insertLayerPreviewIntoDb.php
/extensions/geom2wfst.php
/classes/class_wms.php
/classes/class_wfs.php
/classes/class_stripRequest.php
/classes/class_gml2.php
/classes/class_gml.php

strlen

/php/createImageFromText.php
/php/database_mysql.php
/php/database_pgsql.php
/php/mod_monitorCapabilities_main.php
/classes/class_administration.php (checkURL)
/classes/class_wms.php (createObjFromXML)

skipped
/extension/geom2wfst.php (byte-length not string length)
/tools/send_post.php (byte-length not string length)

strpos

/owsproxy/http/index.php (removeQM)
/php/database_mysql.php
/php/database_pgsql.php
/php/mod_wfs_result.php
/include/dyn_css.php
/include/dyn_js.php
/frames/index.php
/extensions/ext_featureInfoTunnel.php
/extensions/geom2wfst.php
/classes/class_wmc.php
/classes/class_wfs.php
/classes/class_gml2.php
/classes/class_administration.php


skipped
/php/mod_getStyles.php (byte length not string length)

strrpos

no occurence

substr

/owsproxy/http/index.php (removeQM)
/print/print_functions.php
/php/database_mysql.php
/php/database_pgsql.php
/php/mod_monitorCapabilities_main.php
/php/mod_wfs_result.php
/javascripts/mod_initWMC.php
/include/dyn_css.php
/include/dyn_js.php
/extensions/geom2wfst.php
/classes/class_wmc.php
/classes/class_wfs.php
/classes/class_gml2.php
/classes/class_gml.php
/classes/class_administration.php (checkURL)
  
skipped
/print/mod_print_PDF.php (input are coordinates only)
/print/printPDF_b.conf (input is md5-hash)
/print/printPDF.conf (input is md5-hash)
/php/mod_getStyles.php (byte length not string length)

strtolower

/owsproxy/http/index.php
/print/mod_printPDF.php
/print/print_functions.php
/classes/class_weldMaps2PNG.php

strtoupper

/tools/send_post.php
/php/mod_wfs_result.php
/javascripts/mod_poi.php
/extensions/geom2wfst.php
/classes/class_wms.php
/classes/class_wmc.php
/classes/class_wfs.php
/classes/class_kml.php
/classes/class_gml.php
/classes/class_gml2.php
/classes/class_stripRequest.php

ereg

/javascripts/mod_initWMC.php
/extensions/geom2wfst.php

eregi

/php/database_mysql.php
/classes/class_administration.php

ereg_replace

/javascripts/mod_initWMC.php
/extensions/geom2wfst.php

eregi_replace

/php/mod_layerMetadata.php
/php/mod_wfs_gazetteer_server.php
/javascripts/mod_insertLayerPreviewIntoDb.php
/extensions/geom2wfst.php

split

/owsproxy/http/index.php
/print/mod_printPDF_php.php
/php/mod_changeEPSG_dynamic.php
/php/mod_changeEPSG.php
/php/mod_wfs_gazetteer_server.php
/php/mod_wfs.php
/javascripts/mod_back.php
/javascripts/mod_forward.php
/javascripts/mod_scaleHint.php
/extensions/mark_result.php
Views