-
- ANDROID
- ANDROID_TABLET
- CHROME
- CHROME_VERSION
- DOC_MODE
- DOC_MODE_IE10_LT
- DOC_MODE_IE11_LT
- DOC_MODE_IE12_LT
- DOC_MODE_IE8_LT
- DOC_MODE_IE9_LT
- EDGE
- FIREFOX
- IE10_LT
- IE11_LT
- IE7_LT
- IE8_LT
- IE9_LT
- IE_COMPATIBLE
- IE_VERSION
- IPAD
- IPHONE
- LINUX
- MAC
- MOBILE
- MOBILE_IOS
- MOZILLA
- MSIE
- OPERA
- OPERA_MINI
- OS_VERSION
- SAFARI
- SAMSUNG
- SAMSUNG_VERSION
- SMART_PHONE
- TABLET
- TOUCH_DEVICE
- VERSION
- WEBKIT
- WEBKIT_VERSION
- WINDOWS
- WINDOWS_PHONE
- WINDOWS_TABLET
-
- addChild
- addClass
- addEvent
- attr
- children
- clone
- closest
- contentHeight
- contentWidth
- css
- each
- element
- hasClass
- hasEvent
- height
- html
- innerHeight
- innerWidth
- insertSWF
- match
- next
- outerHeight
- outerWidth
- parent
- prev
- prop
- rect
- remove
- removeAllEvent
- removeAttr
- removeChild
- removeClass
- removeEvent
- removeProp
- replaceWith
- scrollLeft
- scrollTop
- selector
- selectorAll
- text
- transition
- trigger
- width
isWholeWord()
Type : public method
Support : 0.6
Return : Boolean
- 해당 문자열에 일치하는 완전체 단어가 있는지 검사 하여 true or false 반환.
Methods
-
isWholeWord( str, findStr, flags ) : Booleanver 0.6~
-
str : String대상 문자열
-
findStr : StringArray비교할 String or String Array, 문자열의 앞뒤로 공백이 들어가면 다른 문자열로 인식하여 false반환.
-
flags : String대소문자 구별하지 않으려면 "i", 멀티라인 검색은
-
Example
var result1 = $B.string.isWholeWord( 'Hello World', 'Hello' ); // true
var result2 = $B.string.isWholeWord( 'Hello World', 'He' ); // false
var result3 = $B.string.isWholeWord( 'Hello World', 'hello', 'i' ); // true
var result4 = $B.string.isWholeWord( 'Hello World', ['World', 'hello'] ); // false
var result5 = $B.string.isWholeWord( 'Hello World', ['World', 'Hello'] ); // true