{"id":23224048,"url":"https://github.com/junaidsalim/string_manipulation_with_overloaded_operators_in_cplusplus","last_synced_at":"2025-07-18T07:07:01.973Z","repository":{"id":176912790,"uuid":"659730916","full_name":"JunaidSalim/String_Manipulation_with_Overloaded_Operators_in_Cplusplus","owner":"JunaidSalim","description":" A class that provides various string operations including concatenation, comparison, indexing, sub-string extraction, assignment, and shifting.","archived":false,"fork":false,"pushed_at":"2024-01-17T16:49:52.000Z","size":414,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T16:44:30.631Z","etag":null,"topics":["cpp","libraries","oop","oop-in-cpp","oop-principles","string-manipulation"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JunaidSalim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-28T12:45:26.000Z","updated_at":"2024-02-11T08:17:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"2e3bd56a-7c12-484a-ae04-14bb0a4f8d9a","html_url":"https://github.com/JunaidSalim/String_Manipulation_with_Overloaded_Operators_in_Cplusplus","commit_stats":null,"previous_names":["junaidsalim/string-manipulation-with-overloaded-operators-in-c-","junaidsalim/string_manipulation_with_overloaded_operators_in_cplusplus"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JunaidSalim/String_Manipulation_with_Overloaded_Operators_in_Cplusplus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JunaidSalim%2FString_Manipulation_with_Overloaded_Operators_in_Cplusplus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JunaidSalim%2FString_Manipulation_with_Overloaded_Operators_in_Cplusplus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JunaidSalim%2FString_Manipulation_with_Overloaded_Operators_in_Cplusplus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JunaidSalim%2FString_Manipulation_with_Overloaded_Operators_in_Cplusplus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JunaidSalim","download_url":"https://codeload.github.com/JunaidSalim/String_Manipulation_with_Overloaded_Operators_in_Cplusplus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JunaidSalim%2FString_Manipulation_with_Overloaded_Operators_in_Cplusplus/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265716306,"owners_count":23816354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","libraries","oop","oop-in-cpp","oop-principles","string-manipulation"],"created_at":"2024-12-18T23:29:58.545Z","updated_at":"2025-07-18T07:07:01.951Z","avatar_url":"https://github.com/JunaidSalim.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# String-Manipulation-with-Overloaded-Operators-in-C-\n A class that provides various string library functions including concatenation, comparison, indexing, sub-string extraction, assignment, and shifting.\n\nThis repository contains a C++ program that implements a custom string class called `STRING`. The `STRING` class provides several overloaded operators and member functions for performing various operations on strings.\n\n**Features**\n- String concatenation using the `+` operator\n- In-place string concatenation using the `+=` operator\n- Accessing individual characters using the `[]` operator\n- String equality and inequality comparison using the `==` and `!=` operators\n- String comparison using the `\u003e` and `\u003c` operators\n- Extracting sub-strings using the `()` operator\n- Assignment of one string to another using the `=` operator\n- Left shift and right shift operations to shift characters within the string\n- Getting the size of the string\n\n**Usage**\n1. Clone the repository or download the source code files.\n2. Compile the source code using a C++ compiler of your choice.\n3. Run the compiled executable file.\n\n**Code Explanation**\n- The `STRING` class is defined with various member functions and overloaded operators.\n- The constructor `STRING(char a[])` initializes the string with the provided character array.\n- The overloaded `+` operator (`operator+`) performs string concatenation between two `STRING` objects.\n- The overloaded `+=` operator (`operator+=`) performs in-place string concatenation on a `STRING` object.\n- The overloaded `[]` operator (`operator[]`) allows access to individual characters of the string.\n- The overloaded `==` operator (`operator==`) compares two `STRING` objects for equality.\n- The overloaded `!=` operator (`operator!=`) compares two `STRING` objects for inequality.\n- The overloaded `\u003e` and `\u003c` operators (`operator\u003e` and `operator\u003c`) compare two `STRING` objects.\n- The overloaded `()` operator (`operator()`) extracts a sub-string from a `STRING` object.\n- The overloaded `=` operator (`operator=`) assigns one `STRING` object to another.\n- The overloaded `\u003c\u003c` and `\u003e\u003e` operators (`operator\u003c\u003c` and `operator\u003e\u003e`) allow input and output of `STRING` objects using stream operators.\n- The `sizeofarray` and `sizeofstring` member functions are used to determine the size of character arrays and C++ strings, respectively.\n- The `main` function demonstrates the usage of the `STRING` class by performing various operations on `STRING` objects.\n\n**Contributing**\nContributions to the project are welcome. If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunaidsalim%2Fstring_manipulation_with_overloaded_operators_in_cplusplus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunaidsalim%2Fstring_manipulation_with_overloaded_operators_in_cplusplus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunaidsalim%2Fstring_manipulation_with_overloaded_operators_in_cplusplus/lists"}