Files
harbour-core/doc/en/left.txt
Viktor Szakats 03ac58b17b 2017-09-08 18:22 UTC Viktor Szakats (vszakats users.noreply.github.com)
* bin/commit.hb
  * config/detect.mk
  * config/detfun.mk
  * config/detplat.mk
  * config/dir.mk
  * config/dirsh.mk
  * config/global.mk
  * config/globsh.mk
  * config/instsh.mk
  * config/lang.hb
  * config/lang2po.hb
  * config/po2lang.hb
  * config/postinst.hb
  * contrib/hbexpat/tests/tohash.prg
  * contrib/hbformat/utils/hbformat.ini
  * contrib/hbmisc/hbedit.prg
  * contrib/hbmxml/tests/testmxml.prg
  * contrib/hbnetio/utils/hbnetio/_console.prg
  * contrib/hbnetio/utils/hbnetio/_winsvc.prg
  * contrib/hbnetio/utils/hbnetio/hbnetio.prg
  * contrib/hbnetio/utils/hbnetio/netiomgm.hb
  * contrib/hbwin/tests/ole.prg
  * contrib/hbwin/tests/oletst2.js
  * contrib/hbwin/tests/oletst2.vbs
  * contrib/hbxpp/doc/en/binnumx.txt
  * contrib/hbxpp/doc/en/dbcmdx.txt
  * contrib/xhb/htmutil.prg
  * contrib/xhb/tfile.prg
  * contrib/xhb/tframe.prg
  * contrib/xhb/thtm.prg
  * ChangeLog.txt
  * debian/copyright
  * doc/class_tp.txt
  * doc/hdr_tpl.txt
  * doc/xhb-diff.txt
  * LICENSE.txt
  * package/harbour-wce.spec.in
  * package/harbour-win.spec.in
  * package/harbour.spec
  * package/mpkg_rpm_wce.sh
  * package/mpkg_rpm_win.sh
  * package/mpkg_rpm.sh
  * package/mpkg_src.sh
  * package/mpkg_ver.sh
  * src/rtl/achoice.prg
  * src/rtl/getsys53.prg
  * src/rtl/tgetlist.prg
  * src/rtl/tlabel.prg
  * src/rtl/tmenusys.prg
  * tests/hbdoc.prg
  * tests/langmsg.prg
  * tests/rto_get.prg
  * tests/rto_tb.prg
  + doc/en/ati.txt
  + doc/en/dirdrive.txt
  + doc/en/hashfunc.txt
  + doc/en/hbtoken.txt
  + doc/en/left.txt
  + doc/en/proc.txt
  + doc/en/strtran.txt
  + doc/en/transfrm.txt
  + doc/en/typefile.txt
  * doc/en/*
    * more partial sync with 3.4 fork
2017-09-08 18:25:11 +00:00

89 lines
2.2 KiB
Plaintext

/* $DOC$
$AUTHOR$
2016 Pete D. <pete_westg@yahoo.gr>
$TEMPLATE$
Function
$NAME$
hb_LeftEq()
$CATEGORY$
API
$SUBCATEGORY$
Strings
$ONELINER$
Checks if a sub-string matches to leftmost part of a string.
$SYNTAX$
hb_LeftEq( <cString>, <cSubString> ) --> lMatch
$ARGUMENTS$
<cString> Main string of comparison.
<cSubString> Sub-string compared to leftmost part of <cString>
$RETURNS$
<lMatch> Boolean flag indicating if the matching was successful
$DESCRIPTION$
This function checks if all characters (one by one and with the given order)
of <cSubString> match to leftmost (same length) part of <cString>
or in other words, checks if <cString> starts with <cSubString>,
in which case returns .T., otherwise .F.
Basically it's equivalent to the expression:
`Left( <cString>, Len( <cSubString> ) ) == <cSubString>`
but faster and shorter.
NOTE: Case sensitive!
$EXAMPLES$
? hb_LeftEq( "Harbour", "Ha" ) // --> .T.
? hb_LeftEq( "Harbour", "ha" ) // --> .F.
$STATUS$
R
$COMPLIANCE$
H
$PLATFORMS$
All
$FILES$
Library is core
$SEEALSO$
hb_LeftEqI(), Left(), At()
$END$
*/
/* $DOC$
$AUTHOR$
2016 Pete D. <pete_westg@yahoo.gr>
$TEMPLATE$
Function
$NAME$
hb_LeftEqI()
$CATEGORY$
API
$SUBCATEGORY$
Strings
$ONELINER$
Checks if a sub-string matches to leftmost part of a string.
$SYNTAX$
hb_LeftEqI( <cString>, <cSubString> ) --> lMatch
$ARGUMENTS$
<cString> Main string of comparison.
<cSubString> Sub-string compared to leftmost part of <cString>.
$RETURNS$
<lMatch> Boolean flag indicating if the matching was successful.
$DESCRIPTION$
This function is identical to hb_LeftEq() (see above for details)
but it is case *insensitive*!
$EXAMPLES$
? hb_LeftEqI( "Harbour", "HA" ) // --> .T.
? hb_LeftEqI( "Harbour", "ha" ) // --> .T.
? hb_LeftEq( "Harbour", "HA" ) // --> .F.
$STATUS$
R
$COMPLIANCE$
H
$PLATFORMS$
All
$FILES$
Library is core
$SEEALSO$
hb_LeftEqI(), Left(), At()
$END$
*/