Help:Sbp.func.prefix

From Tetherless World Wiki

Jump to: navigation, search

Contents

Description

Help:Sbp.func.prefix Template:Sbp.func.prefix
  • description: check the presence of a prefix in text
  • module: Help:SMW FIT
  • version: 0.1
  • status: unstable
  • author: Li Ding

Overview

Check presence of a prefix in a text string.

By default, output two numbers:

  • 0 (no) text does not use the prefix
  • 1 (yes) otherwise

User can customize output with the following parameters

  • out_yes
  • out_no

Examples

Example 1. Matches found (expect 1 on each line)


1


1


1


1


1


Example 2. Matches not found (expect 0 on each line)


0


0


0


0


0


0


0


0


Facts about Sbp.func.prefixRDF feed
Author Li Ding  +
Description check the presence of a prefix in text
Module SMW FIT  +
Status unstable  +
Version 0.1  +
Personal tools