4
0
Fork 0
api-powers/src/a5b32737-207d-4cf6-b8ae-ee8.../README.md

2.0 KiB

██████╗  ██████╗ ██╗    ██╗███████╗██████╗
██╔══██╗██╔═══██╗██║    ██║██╔════╝██╔══██╗
██████╔╝██║   ██║██║ █╗ ██║█████╗  ██████╔╝
██╔═══╝ ██║   ██║██║███╗██║██╔══╝  ██╔══██╗
██║     ╚██████╔╝╚███╔███╔╝███████╗██║  ██║
╚═╝      ╚═════╝  ╚══╝╚══╝ ╚══════╝╚═╝  ╚═╝

final class StringHelper (Details)

namespace: TrueChristianChurch\Joomla\GetBible\Utilities

@startuml
class StringHelper << (F,LightGreen) >> #RoyalBlue {
  + split(string $text) : array
  + splitToWords(string $text, bool $punctuation = true) : array
  + isCJK(string $text) : bool
  + hasLength(string $word) : bool
}

note right of StringHelper::split
  Return an array of words

  return: array
end note

note right of StringHelper::splitToWords
  Return an array of only words

  return: array
end note

note right of StringHelper::isCJK
  Checks if a string contains characters typically used in East Asian languages (Chinese, Japanese, Korean)
These languages do not typically use word boundaries in the same way as languages written in Latin script

  return: bool
end note

note right of StringHelper::hasLength
  Make sure a string has a length

  return: bool
end note
 
@enduml

     ██╗ ██████╗██████╗
     ██║██╔════╝██╔══██╗
     ██║██║     ██████╔╝
██   ██║██║     ██╔══██╗
╚█████╔╝╚██████╗██████╔╝
 ╚════╝  ╚═════╝╚═════╝

Build with Joomla Component Builder