4
0
Fork 0
api-powers/src/a5b32737-207d-4cf6-b8ae-ee8...
Robot cfe9fa7ba7
update 2024-04-06 15:05:35
2024-04-06 15:05:35 +02:00
..
README.md update 2024-04-06 15:05:35 2024-04-06 15:05:35 +02:00
code.php update 2024-04-06 15:05:35 2024-04-06 15:05:35 +02:00
code.power update 2023-09-26 08:24:03 2023-09-26 08:24:03 +02:00
settings.json update 2024-04-06 15:05:35 2024-04-06 15:05:35 +02:00

README.md

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

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