当前位置:首页 > MT4程序库 > MT4库文件

字符串增强库函数文件

时间:2008-08-17 23:24:38  来源:  作者:

String Library

String Library provides a group of useful functions intended for working with strings. The library perfectly complement build-in functions of MetaTrader. After copying the files into corresponding directories you can include the library by adding following line to your files: #include <StringLib.mqh>.

Functions:
  • string stringReplaceAll(string str, string toFind, string toReplace) — Returns a new string resulting from replacing all occurrences of toFind in this string with toReplace.
  • string stringReplaceFirst(string str, string toFind, string toReplace) — Replaces the first substring of this string that matches toFind with toReplace.
  • void stringSplit(string& output[], string input, string token) — Splits input string into output array around given token.
  • string stringTrim(string str) — Returns a copy of the string, with leading and trailing whitespace omitted.
  • bool stringStartsWith(string str, string prefix) — Tests if given string starts with the specified prefix.
  • bool stringEndsWith(string str, string suffix) — Tests if given string ends with the specified suffix.
  • string stringToLowerCase(string str) — Converts all of the characters in the given string to lower case (works only with English alphabet).
  • string stringToUpperCase(string str) — Converts all of the characters in the given string to upper case (works only with English alphabet).
  • bool stringEqualsIgnoreCase(string str1, string str2) — Compares one string to another string, ignoring case considerations (works only with English alphabet).

Download 

MQL字符串增强库函数
文件类型: *.zip99118e0498f62f8037f8f3bab14fb872.zip (5.44 KB)

 and unpack it in experts subdirectory.

来顶一下
近回首页
返回首页
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
This site was designed & Modified by beok.net. Last ModiMon, 08/11/2008 0:05 AMe --> Beijing Time.