{
  "synLogic": "int $ret \u003d $api($1, $2, $3, $4, $5, $6, $7, $8, $9);",
  "help": "Searches for an occurrence of a string and saves it to a parameter.",
  "notes": "",
  "returns": "int",
  "arguments": "\u003ctable class\u003d\"newGuiTable\"\u003e \u003ctr\u003e         \u003cth\u003eArgument\u003c/th\u003e     \u003cth\u003eDescription\u003c/th\u003e     \u003c/tr\u003e   \u003ctr\u003e    \u003ctd\u003eInput Buffer Type\u003c/td\u003e     \u003ctd\u003e             Specifies the input type. If input type is a buffer, then NS_ARG_IS_BUF is used for this field. If input type is a parameter, then NS_ARG_IS_PARAM is used for this field.         \u003c/td\u003e     \u003c/tr\u003e  \u003ctr\u003e       \u003ctd\u003eInput\u003c/td\u003e     \u003ctd\u003e             The CARRAY buffer or parameter in which you want to search used for input. If the input type is NS_ARG_IS_BUF, then input must be a buffer and if input type is a parameter then input is any parameter, such as search parameter, declare parameter, file parameter, and so on.         \u003c/td\u003e     \u003c/tr\u003e  \u003ctr\u003e       \u003ctd\u003eOutput Buffer Type\u003c/td\u003e     \u003ctd\u003e             Specifies the output type. It can be NS_ARG_IS_BUF if output is stored in a buffer or NS_ARG_IS_PARAM if output is stored in a parameter.         \u003c/td\u003e     \u003c/tr\u003e   \u003ctr\u003e       \u003ctd\u003eOutput\u003c/td\u003e     \u003ctd\u003e             The CARRAY or parameter where you want to save the search result . If the output type is NS_ARG_IS_BUF, then output must be a buffer and if output type is a parameter, then output is any parameter, such as search parameter, declare parameter, file parameter, and so on.         \u003c/td\u003e     \u003c/tr\u003e \u003ctr\u003e    \u003ctd\u003eLB\u003c/td\u003e     \u003ctd\u003e              Specifies left bound of the string.         \u003c/td\u003e     \u003c/tr\u003e \u003ctr\u003e    \u003ctd\u003eRB\u003c/td\u003e     \u003ctd\u003e    Specifies right bound of the string.         \u003c/td\u003e     \u003c/tr\u003e  \u003ctr\u003e    \u003ctd\u003eOccurence count(ORD)\u003c/td\u003e     \u003ctd\u003e              Specifies occurence count . It can be, NS_ORD_ALL, NS_ORD_ANY, or any positive integer.         \u003c/td\u003e     \u003c/tr\u003e \u003ctr\u003e    \u003ctd\u003eStart Offset\u003c/td\u003e     \u003ctd\u003e              The number of character to skip . It can be NS_FROM_START or any positive integer value.         \u003c/td\u003e     \u003c/tr\u003e \u003ctr\u003e    \u003ctd\u003eSave Length\u003c/td\u003e     \u003ctd\u003e              The number of characters to save . It can be any positive integer value or NS_SAVE_COMPLETE.        \u003c/td\u003e     \u003c/tr\u003e \u003c/table\u003e",
  "parameterization": "You cannot use standard parameterization for any arguments in this function.",
  "component": [
    {
      "id": "$2",
      "type": "ADVN_OPT",
      "label": "Input Type",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter Input Type",
      "placeHolder": "",
      "style": "saveSearchStr",
      "isDisabled": "",
      "quotes": false,
      "validate": {
        "inputType": "Text",
        "required": true
      }
    },
        {
      "id": "$4",
      "type": "ADVN_OPT",
      "label": "Output Type",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter Output Type",
      "placeHolder": "",
      "style": "saveSearchStr",
      "isDisabled": "",
      "quotes": false,
      "validate": {
        "inputType": "Text",
        "required": true
      }
    },
    {
      "id": "$5",
      "type": "TextField",
      "label": "Left Boundary",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter LB",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0
      },
      "quotes": true
    },
    {
      "id": "$6",
      "type": "TextField",
      "label": "Right Boundary",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter RB",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0
      },
      "quotes": true
    },
    {
      "id": "$7",
      "type": "Dropdown",
      "label": "Occurrence count (ORD)",
      "value": "NS_ORD_ANY",
      "css": "p-grid p-align-center w-100-p",
      "title": "select Occurrence count (ORD)",
      "placeHolder": "select input type",
      "style": "",
      "isDisabled": "",
      "list": [
        {
		  "label": "ANY",
		  "value": "NS_ORD_ANY"
		},
		{
		  "label": "ALL",
		  "value": "NS_ORD_ALL"
		},
		{
		  "label": "1",
		  "value": "1"
		},
		{
		  "label": "2",
		  "value": "2"
		},
		{
		  "label": "3",
		  "value": "3"
		},
		{
		  "label": "4",
		  "value": "4"
		},
		{
		  "label": "5",
		  "value": "5"
		},
		{
		  "label": "6",
		  "value": "6"
		},
		{
		  "label": "7",
		  "value": "7"
		},
		{
		  "label": "8",
		  "value": "8"
		},
		{
		  "label": "9",
		  "value": "9"
		},
		{
		  "label": "10",
		  "value": "10"
		},
		{
		  "label": "11",
		  "value": "11"
		},
		{
		  "label": "12",
		  "value": "12"
		},
		{
		  "label": "13",
		  "value": "13"
		},
		{
		  "label": "14",
		  "value": "14"
		},
		{
		  "label": "15",
		  "value": "15"
		},
		{
		  "label": "16",
		  "value": "16"
		},
		{
		  "label": "17",
		  "value": "17"
		},
		{
		  "label": "18",
		  "value": "18"
		},
		{
		  "label": "19",
		  "value": "19"
		},
		{
		  "label": "20",
		  "value": "20"
		},
		{
		  "label": "21",
		  "value": "21"
		},
		{
		  "label": "22",
		  "value": "22"
		},
		{
		  "label": "23",
		  "value": "23"
		},
		{
		  "label": "24",
		  "value": "24"
		},
		{
		  "label": "25",
		  "value": "25"
		}
      ],
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0
      }
    },
    {
      "id": "$8",
      "type": "Dropdown",
      "label": "Start Offset",
      "value": "NS_FROM_START",
      "css": "p-grid p-align-center w-100-p",
      "title": "select Start Offset",
      "placeHolder": "select Start Offset",
      "style": "",
      "isDisabled": "",
      "list": [
        {
		  "label": "From the beginning",
		  "value": "NS_FROM_START"
		},
		{
		  "label": "1",
		  "value": "1"
		},
		{
		  "label": "2",
		  "value": "2"
		},
		{
		  "label": "3",
		  "value": "3"
		},
		{
		  "label": "4",
		  "value": "4"
		},
		{
		  "label": "5",
		  "value": "5"
		},
		{
		  "label": "6",
		  "value": "6"
		},
		{
		  "label": "7",
		  "value": "7"
		},
		{
		  "label": "8",
		  "value": "8"
		},
		{
		  "label": "9",
		  "value": "9"
		},
		{
		  "label": "10",
		  "value": "10"
		},
		{
		  "label": "11",
		  "value": "11"
		},
		{
		  "label": "12",
		  "value": "12"
		},
		{
		  "label": "13",
		  "value": "13"
		},
		{
		  "label": "14",
		  "value": "14"
		},
		{
		  "label": "15",
		  "value": "15"
		},
		{
		  "label": "16",
		  "value": "16"
		},
		{
		  "label": "17",
		  "value": "17"
		},
		{
		  "label": "18",
		  "value": "18"
		},
		{
		  "label": "19",
		  "value": "19"
		},
		{
		  "label": "20",
		  "value": "20"
		},
		{
		  "label": "21",
		  "value": "21"
		},
		{
		  "label": "22",
		  "value": "22"
		},
		{
		  "label": "23",
		  "value": "23"
		},
		{
		  "label": "24",
		  "value": "24"
		},
		{
		  "label": "25",
		  "value": "25"
		}
      ],
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0
      }
    },
    {
      "id": "$9",
      "type": "Dropdown",
      "label": "Save Length",
      "value": "NS_SAVE_COMPLETE",
      "css": "p-grid p-align-center w-100-p",
      "title": "select Save Length",
      "placeHolder": "select Save Length",
      "style": "",
      "isDisabled": "",
      "list": [
        {
		  "label": "Till the end",
		  "value": "NS_SAVE_COMPLETE"
		},
		{
		  "label": "1",
		  "value": "1"
		},
		{
		  "label": "2",
		  "value": "2"
		},
		{
		  "label": "3",
		  "value": "3"
		},
		{
		  "label": "4",
		  "value": "4"
		},
		{
		  "label": "5",
		  "value": "5"
		},
		{
		  "label": "6",
		  "value": "6"
		},
		{
		  "label": "7",
		  "value": "7"
		},
		{
		  "label": "8",
		  "value": "8"
		},
		{
		  "label": "9",
		  "value": "9"
		},
		{
		  "label": "10",
		  "value": "10"
		},
		{
		  "label": "11",
		  "value": "11"
		},
		{
		  "label": "12",
		  "value": "12"
		},
		{
		  "label": "13",
		  "value": "13"
		},
		{
		  "label": "14",
		  "value": "14"
		},
		{
		  "label": "15",
		  "value": "15"
		},
		{
		  "label": "16",
		  "value": "16"
		},
		{
		  "label": "17",
		  "value": "17"
		},
		{
		  "label": "18",
		  "value": "18"
		},
		{
		  "label": "19",
		  "value": "19"
		},
		{
		  "label": "20",
		  "value": "20"
		},
		{
		  "label": "21",
		  "value": "21"
		},
		{
		  "label": "22",
		  "value": "22"
		},
		{
		  "label": "23",
		  "value": "23"
		},
		{
		  "label": "24",
		  "value": "24"
		},
		{
		  "label": "25",
		  "value": "25"
		}
      ],
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0
      }
    },
	{
      "id": "$ret",
      "type": "TextField",
      "label": "Return Variable",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "argIndex": 0,
	  "title": "First character must be Alpha.\r\nOther characters are Alpha, Numeric or Underscore",
      "validate": {
        "inputType": "Text",
        "disabled": false,
        "pattern": "^[a-zA-Z_][a-zA-Z0-9_\u003e]{0,63}$",
        "required": false,
        "min": 0,
        "max": 0,
		"method": "isValidVar(arg)"
      }
    }
  ],
  "name": "ns_save_searched_string",
  "syntax": "int ns_save_searched_string(int in_type, char *in, int out_type, char *out, char *lb, char *rb, int ord, int start_offset, int save_len)",
  "javaSyntax": "int ns_save_searched_string(int in_type, String in, int out_type, StringBuffer out, String lb, String rb, int ord, int start_offset, int save_len)",
  "jsSyntax": "ns_save_searched_string(in_type: number, in: string, out_type: number, out: string, lb: string, rb: string, ord: number, start_offset: number, save_len: number)",
  "cEx": "flow()\n{\n  ns_save_searched_string(NS_ARG_IS_BUF, src_buf, NS_ARG_IS_PARAM, \"requestId\", \"reqId\\\":\\\"\", \"\\\",\",   NS_ORD_ANY,NS_FROM_START, NS_SAVE_COMPLETE) ;\n  // Here src_buf is a local variable in which LB/RB will be searched and requestId is a NS parameter\n}",
  "javaEx": "public class flow implements NsFlow\n{\n  public int execute(NSApi nsApi) throws Exception\n  {\n    String buf1 = \"save a searched string\";\n    StringBuffer buf2 = new StringBuffer();\n\n    nsApi.ns_save_searched_string(NS_ARG_IS_BUF, buf1, NS_ARG_IS_BUF, buf2, \"save\", \"string\", NS_ORD_ANY, NS_FROM_START, NS_SAVE_COMPLETE);\n    // Here buf1 is a local variable in which LB/RB will be searched and buf2 is a String buffer\n  }\n}",
  "jsEx": "  nsApi.ns_save_searched_string(NS_ARG_IS_BUF, src_buf, NS_ARG_IS_PARAM, \"requestId\", \"reqId\\\":\\\"\", \"\\\",\",   NS_ORD_ANY,NS_FROM_START, NS_SAVE_COMPLETE) ;\n  // Here src_buf is a local variable in which LB/RB will be searched and requestId is a NS parameter\n",
  "insertStrC": "int ns_save_searched_string(int in_type, char *in, int out_type, char *out, char *lb, char *rb, int ord, int start_offset, int save_len);",
  "insertStrJava": "int ns_save_searched_string(int in_type, String in, int out_type, StringBuffer out, String lb, String rb, int ord, int start_offset, int save_len);",
  "insertStrJs": "ns_save_searched_string(in_type: number, in: string, out_type: number, out: string, lb: string, rb: string, ord: number, start_offset: number, save_len: number);",
  "description": "The ns_save_searched_string searches a string  as defined by boundaries in a buffer and saves it in a buffer or parameter"
}
