From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS17314 8.43.84.0/22 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_REPLYTO_END_DIGIT, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 80F7C1F910 for ; Mon, 14 Nov 2022 08:51:50 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="GdwuaGah"; dkim-atps=neutral Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5DB2E384F011 for ; Mon, 14 Nov 2022 08:51:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5DB2E384F011 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668415909; bh=hRD8Wv5Jqne23D/GpTiXPeovxI4aHcXeA8hbYd1/dqQ=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=GdwuaGahsbumOl/MHcmnQcltWwNRn3iXGhBF8yFrgAeYuqyxVOn9sEz1LwloOhjcJ YTFxInhJsJ25oBrUlPykk4mufM40TT8puYdL/uK7uzG+Awh3iYD/fkXwgbcydRWYpO ekckWCPeJtcqQGO8FAIkIoMhDFuYgXB+2Gf4bIA4= Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by sourceware.org (Postfix) with ESMTPS id 896F9384188F for ; Mon, 14 Nov 2022 08:51:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 896F9384188F Received: by mail-ej1-x632.google.com with SMTP id k2so26613081ejr.2 for ; Mon, 14 Nov 2022 00:51:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=hRD8Wv5Jqne23D/GpTiXPeovxI4aHcXeA8hbYd1/dqQ=; b=XkKgF2dmmNNpRthvSKbOMikwi6yOn0P1GQNa8U0ig8bdKThHAdBOZMRH0raxOGIj7+ 5VtZmzCrj/kr8PdK1RPTt/kIHINnte+YFO7UaaNB7DloUMj4kChCkuHdXs27Le0iPH2w phB93SucJwr/Bc+090btdzCRI85dayMG0bqduPdlM2hniuoqr7Q7LcokCo0mNPT33kjg JhpJzyJVG3/oFBQQ9CO+OQ2VhEe+oTFD/AXhgYACp7QssLXDVNN5AbLDQiioTE8kuk8d YBspmpPsPG4kEa5gBRCZRYOs7dxC8ao4h9T/idwMi2ZPz/wX3oBDsBGhU6UyEUCMKt+G xY/Q== X-Gm-Message-State: ANoB5pn46nDcAH/R88oLEZsg1vQ1NMaVo41zX7y6lZX28DwdlObShRV5 bjPaTvfon8YvAfhKWq0lp8g7VThEbU8aAWFP8hfVJLqcOIc= X-Google-Smtp-Source: AA0mqf7v9kH5W+tCPAqEhb1Jo4T0MDfFzceGGIiIiCEVt7dKMyApvYV3sEYVbFVOEkqGuRaeQzGlAY/gy45N/vwzr1E= X-Received: by 2002:a17:907:c00c:b0:7ae:fbe6:e7ca with SMTP id ss12-20020a170907c00c00b007aefbe6e7camr2974900ejc.408.1668415886208; Mon, 14 Nov 2022 00:51:26 -0800 (PST) MIME-Version: 1.0 Date: Mon, 14 Nov 2022 14:21:17 +0530 Message-ID: Subject: More string functions. To: libc-alpha@sourceware.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: A via Libc-alpha Reply-To: A Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" Hi, I am implementing the following string functions in C. Some of them I have already implemented. They can be found here:https://marc.info/?l=linux-kernel&m=166745670428635&w=2 I just wanted to know whether glibc would be interested in these functions. Obviously, if glibc is interested then I may have to change my code and may be coding style too. I am not expecting any negative comments about this request and about my code. If glibc is not interested, then please silently ignore this mail. The functions are: Functions implemented are: ------------------------------------- str_split() str_join() substr() get_input_from_stdin_and_discard_extra_characters() str_is_null_or_empty() str_is_whitespaces() str_is_null_or_empty_or_whitespaces() str_is_integer() str_starts_with() str_ends_with() str_join() substr() str_split() get_number_of_strings_in_strings_array() print_strings_array() free_strings_array() Functions to implement are: ------------------------------------- str_is_float() str_is_ascii() str_strip() str_strip_leading() str_strip_trailing() str_trim() str_trim_leading() str_trim_trailing() str_compare_range() str_hash_code() str_remove_leading_characters() str_remove trailing_characters() str_r_str() str_to_lower_case() str_to_upper_case() strtok_new() str_left_pad(char, count) str_right_pad(char, count) str_replace_str() str_replace_chr() str_insert_str() str_insert_chr() str_remove_str() str_remove_chr() str_repeat(int count) str_shuffle() str_format_in_usa_currency() get_file_name_from_path() get_parent_directory_of() // regex functions str_match_regex() str_starts_with_regex() str_ends_with_regex() str_replace_regex() str_remove_regex() str_split_on_regex_delim() Amit